Add more file operations
This commit is contained in:
parent
d069cbdb67
commit
c0fd041532
2 changed files with 15 additions and 0 deletions
|
|
@ -1,8 +1,12 @@
|
|||
import { RelativePath } from "src/database/document-metadata";
|
||||
|
||||
export interface FileOperations {
|
||||
listAllFiles(): Promise<RelativePath[]>;
|
||||
|
||||
read(path: RelativePath): Promise<Uint8Array>;
|
||||
|
||||
getModificationTime(path: RelativePath): Promise<Date>;
|
||||
|
||||
create(path: RelativePath, newContent: Uint8Array): Promise<void>;
|
||||
|
||||
// Writes new content to the file at the given path. If the file's content has changed since the expectedContent was read, the write will merge the changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue