mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-06 10:04:55 +02:00
Hardcode Desktop.ini in the exclude list
This prevents it from being removed from the exclude list, which would be an issue since the client itself creates this file in a way that wouldn't match on machines with different installation paths.
This commit is contained in:
parent
251f1d0047
commit
a480a318fd
2 changed files with 7 additions and 1 deletions
|
@ -293,6 +293,13 @@ static CSYNC_EXCLUDE_TYPE _csync_excluded_common(c_strlist_t *excludes, const ch
|
|||
}
|
||||
#endif
|
||||
|
||||
/* We create a desktop.ini on Windows for the sidebar icon, make sure we don't sync them. */
|
||||
rc = csync_fnmatch("Desktop.ini", bname, 0);
|
||||
if (rc == 0) {
|
||||
match = CSYNC_FILE_SILENTLY_EXCLUDED;
|
||||
goto out;
|
||||
}
|
||||
|
||||
rc = csync_fnmatch(".owncloudsync.log*", bname, 0);
|
||||
if (rc == 0) {
|
||||
match = CSYNC_FILE_SILENTLY_EXCLUDED;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
].ds_store
|
||||
._*
|
||||
]Thumbs.db
|
||||
desktop.ini
|
||||
System Volume Information
|
||||
|
||||
.*.sw?
|
||||
|
|
Loading…
Reference in a new issue