diff --git a/src/sync-manager.ts b/src/sync-manager.ts index 289d491..5d7c1e3 100644 --- a/src/sync-manager.ts +++ b/src/sync-manager.ts @@ -223,6 +223,11 @@ export default class SyncManager { if (entry.directory) { await this.vault.adapter.mkdir(normalizePath(targetPath)); + + if (targetPath.split("/").last()?.startsWith(".")) { + // We must skip hidden files as that creates issues with syncing. + // This is fine as users can't edit hidden files in Obsidian anyway. + await this.logger.info("Skipping hidden file", targetPath); return; }