fix: synchronise case-only file renames safely

This commit is contained in:
metrovoc authored and vorotamoroz committed 2026-07-16 20:48:12 +09:00
1 parent ba7ea27d0c
commit 869a893c19
362 files changed
+722 -380

No files matched your search

@@ -103,6 +103,13 @@ export class NodeVaultAdapter implements IVaultAdapter<NodeFile> {
};
}
async rename(file: NodeFile, newPath: string): Promise<void> {
const targetPath = this.resolvePath(newPath);
await fs.mkdir(path.dirname(targetPath), { recursive: true });
await fs.rename(this.resolvePath(file.path), targetPath);
file.path = newPath as FilePath;
}
async delete(file: NodeFile | NodeFolder, force = false): Promise<void> {
const fullPath = this.resolvePath(file.path);
const stat = await fs.stat(fullPath);