aboutsummaryrefslogtreecommitdiff
path: root/src/files.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/files.ts')
-rw-r--r--src/files.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/files.ts b/src/files.ts
index 42e490a..6572c53 100644
--- a/src/files.ts
+++ b/src/files.ts
@@ -208,3 +208,10 @@ export const createProjectFolder: (name: string) => void = (projName: string): a
fs.mkdirSync(CONTENT_BASE_DIRECTORY + '/' + projName);
}
}
+
+export const addSubFileToFolder: (parentId: string, subFileId: string) => void = (parentId: string, subFileId: string): any => {
+ // TODO:
+ // fetch parent file object from database
+ // update parent file object
+ // save
+}