reorganize

This commit is contained in:
marlon-erler
2024-07-22 11:57:47 +02:00
parent 29c3e4ad43
commit c2e78f9786
+5 -5
View File
@@ -79,11 +79,6 @@ export default class FileModel {
return this.storageModel.list(this.getBasePath());
};
listFileContents = (file: File): string[] => {
const filePath: string[] = this.getFilePath(file.id);
return this.storageModel.list(filePath);
};
getFile = (fileId: string): File | null => {
const filePath = this.getFilePath(fileId);
const fileOrNull: File | null = this.storageModel.readStringifiable(
@@ -93,6 +88,11 @@ export default class FileModel {
return fileOrNull;
};
listFileContents = (file: File): string[] => {
const filePath: string[] = this.getFilePath(file.id);
return this.storageModel.list(filePath);
};
getLatestFileContentName = (fileContentNames: string[]): string | null => {
return fileContentNames[fileContentNames.length - 1];
};