reorganize
This commit is contained in:
@@ -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];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user