mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-26 14:32:58 +00:00
fix: synchronise case-only file renames safely
This commit is contained in:
@@ -54,6 +54,11 @@ export class ObsidianFileSystemAdapter implements IFileSystemAdapter<TAbstractFi
|
||||
return Promise.resolve(this.app.vault.getFiles());
|
||||
}
|
||||
|
||||
async renameFile(file: TFile, newPath: string): Promise<TFile> {
|
||||
await this.vault.rename(file, newPath);
|
||||
return file;
|
||||
}
|
||||
|
||||
statFromNative(file: TFile): Promise<UXStat> {
|
||||
return Promise.resolve({ ...file.stat, type: "file" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user