зеркало из https://github.com/nextcloud/desktop.git
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:
Родитель
251f1d0047
Коммит
a480a318fd
|
@ -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?
|
||||
|
|
Загрузка…
Ссылка в новой задаче