mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-06 16:28:18 +00:00
Merge main after CLI case-sensitivity fix
This commit is contained in:
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);
|
||||||
|
|||||||
Reference in new issue
Block a user