Merge main after CLI case-sensitivity fix

This commit is contained in:
vorotamoroz committed 2026-11-05 13:53:15 +00:00
commit 111a1dea31
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);