Explain CLI case-sensitivity probe isolation

This commit is contained in:
vorotamoroz committed 2026-11-05 13:44:13 +00:00
1 parent daa67bea51
commit 34c8ce2b95
1 file changed
+2
@@ -1,6 +1,8 @@
import { fs, path } from "@vrtmrz/livesync-commonlib/node"; import { fs, path } from "@vrtmrz/livesync-commonlib/node";
export function isStorageCaseInsensitive(vaultPath: string): boolean { 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-")); const probePath = fs.mkdtempSync(path.join(vaultPath, ".livesync-case-"));
try { try {
const original = fs.statSync(probePath); const original = fs.statSync(probePath);