mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-06 16:28:18 +00:00
Explain CLI case-sensitivity probe isolation
This commit is contained in:
1 parent
daa67bea51
commit
34c8ce2b95
1 file changed
+2
@@ -1,6 +1,8 @@
|
||||
import { fs, path } from "@vrtmrz/livesync-commonlib/node";
|
||||
|
||||
export function isStorageCaseInsensitive(vaultPath: string): boolean {
|
||||
// Probe with an empty directory on the Vault filesystem. The dot-prefixed name is
|
||||
// excluded by the CLI watcher and synchronisation filters; finally removes it after detection.
|
||||
const probePath = fs.mkdtempSync(path.join(vaultPath, ".livesync-case-"));
|
||||
try {
|
||||
const original = fs.statSync(probePath);
|
||||
|
||||
Reference in new issue
Block a user