mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Skip hidden files when unzipping repo on first sync from remote
This commit is contained in:
parent
56bd6dee4c
commit
1e16d01adf
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue