feat(archives): bootstrap what-is-archives from Github

This commit is contained in:
Jean-Philippe Sirois
2019-11-11 15:40:52 -08:00
parent 51eeb489e5
commit 7cc1e4c899
33 changed files with 578 additions and 242 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ export function humanize(str: string): string {
export function traversePaths(
[head, ...tail]: string[],
basePath: string = "/resources"
basePath: string
): IFileOrFolder {
const path = basePath + "/" + head
const isFile = !tail.length
@@ -55,7 +55,7 @@ export function traversePaths(
export function traversePathsToFiles(
[head, ...tail]: string[],
basePath: string = "/resources",
basePath: string,
depth: number = 0
): IFileOrFolder {
const path = basePath + "/" + head + "/" + tail.join("/")