mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: rework file handling so we always explicitly create, overwrite or both (#12812)
This commit is contained in:
parent
af70111645
commit
5a1a841365
7 changed files with 46 additions and 16 deletions
|
|
@ -35,7 +35,9 @@ export interface IStorageRepository {
|
|||
createZipStream(): ImmichZipStream;
|
||||
createReadStream(filepath: string, mimeType?: string | null): Promise<ImmichReadStream>;
|
||||
readFile(filepath: string, options?: FileReadOptions<Buffer>): Promise<Buffer>;
|
||||
writeFile(filepath: string, buffer: Buffer): Promise<void>;
|
||||
createFile(filepath: string, buffer: Buffer): Promise<void>;
|
||||
createOrOverwriteFile(filepath: string, buffer: Buffer): Promise<void>;
|
||||
overwriteFile(filepath: string, buffer: Buffer): Promise<void>;
|
||||
realpath(filepath: string): Promise<string>;
|
||||
unlink(filepath: string): Promise<void>;
|
||||
unlinkDir(folder: string, options?: { recursive?: boolean; force?: boolean }): Promise<void>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue