You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to "hard-ignore" files, with a default set of extensions. #1631
It appears that, at least on OS X, conditions exist that can cause system created files, such as .DS_Store to be duplicated with a sync-conflict.
Example: .sync-conflict-20150411-115146.DS_Store
I usually have that on my ignore list, I guess I missed one share and saw it happen. Since it's invisible in OS X to the average user via the GUI, one might not notice them piling up.
Yeah... I'm somewhat considering a default list of ignores (as mentioned in 1000 other places), but with an even stronger level of suppression.
The main problem with ignoring a bunch of stuff is that we can no longer delete directories with those files in them. An idea would be to have a certain class of file be ignored and nuked from directories we are trying to delete. .DS_Store is a prime candidate for this, as it's existence doesn't really mean the directory is not empty enough to be deleted.
👍 As a user, I would love the ability to add ignores to this list: there are files I want to ignore and don't care about losing, but that are specific to my system.
I agree, to have a default ignore list for these files would be awesome. 👍
Maybe one day Apple will stop to use them or store them in a separate directory ...
changed the title [-]v0.11beta sync-conflict w/system files e.g. .DS_Store[/-][+]Ability to "hard-ignore" files, with a default set of extensions.[/+]on Apr 14, 2015
I liked the suggestion in the forum for a flag somehow in stignore to indicate "delete this file if it blocks a directory removal". That would solve this nicely I think.
Agreed. I think there is a conceptual difference between "I don't want you to sync this important file", and "I don't want you to sync this rubbish that I can't get rid of but don't care about"
There's another similar but somewhat orthogonal distinction that perhaps
might also be useful:
Don't send/share this file to others (ignore in local indexing)
vs
Don't pull this file from others (ignore in global state)
For the user, one is 'private/disinterested', one is 'precious/rubbish'.
There may well be much overlap between 'disinterested' and 'rubbish'. They
might even be similar enough to call the same in practice, not sure.
Precious is closer to the current 'master' mode than ignore.
The list of rubbish might well be common across all nodes (ie in a synced
file, used directly or via #include). The others are more likely local.
Making these distinctions available and clearer might help sort out:
- master mode confusion
- sync progress % vs ignores
- whether directories are 'empty' on delete
- selective pull
If it helps, here is the default ignore list I compiled for Ronomon's new sync app:
Ignored folders
.AppleDouble
A hidden folder created on some NAS devices.
.DocumentRevisions-V100
A system folder created by Mac OS X containing different revisions made to files by apps that support Versions.
.fseventsd
A system folder created by Mac OS X containing logs of file system events, logged by a monitoring background process called fsevents, whenever files are created, modified, or deleted.
.Spotlight-V100
A system folder created by Mac OS X containing metadata indexes and indexing rules for Spotlight.
.TemporaryItems
A system folder created by Mac OS X for temporary storage.
.Trash
A system folder created by Mac OS X (on the boot volume) or Ubuntu to store deleted files and deleted folders which have not yet been erased from Trash.
.Trashes
A system folder created by Mac OS X (on volumes other than the boot volume) to store deleted files and deleted folders which have not yet been erased from Trash.
.Trash-*
A system folder created by Ubuntu to store deleted files and deleted folders which have not yet been erased from Trash for a specific user (UID).
._*
An "AppleDouble" system file created by Mac OS X on volumes that do not natively support proprietary HFS file system features (e.g. FAT32 thumb drives, Windows fileshares etc.). When a file is copied from a Mac to such a volume, the data fork of the file is stored under the regular filename, and any additional HFS information (e.g. extended attributes, resource fork, type, text encoding etc.) is stored in a second file (in AppleDouble format), using the regular filename prepended with _.__. AppleDouble files are hidden on Mac and Linux but visible on other operating systems.
.apdisk
A system file created by Mac OS X to store information about mounted folders on a Windows network.
desktop.ini
A system file created by Windows that determines the way a folder is displayed (including icon and localized name) if a custom appearance has been set for the folder.
ehThumbs.db
A system file created by Windows XP Media Center Edition to store thumbnail previews of video files.
.DS_Store
A "Desktop Services Store" system file created by Mac OS X to store custom attributes for a given folder such as view options, the position of icons and choice of background image.
Icon\r
A 0-byte file stored within a folder on Mac OS X to indicate that the folder has a custom icon. The icon data is stored in the com.apple.ResourceFork extended attribute of the file, and not in the file itself.
.localized
A 0-byte file stored within a folder on Mac OS X to indicate to the Finder that the folder has various localized names depending on the user's locale and that a localized name can be displayed for the folder if one has been defined. For example, the folder "Library" might be displayed as "Bibliothèque" if the user's language has been set to French.
Thumbs.db
A system file created by Windows to store thumbnail previews of various graphics, pictures, photos, documents and files (e.g. .jpeg, .bmp, .gif, .tif, .pdf, .htm) when these files are viewed in Windows Explorer's Thumbnail or Filmstrip view.
** .~***
A temporary file.
** ~.tmp*
A temporary file.
** ~$***
A temporary file.
** .ac$*
A temporary file created by AutoCAD containing information used by various AutoCAD commands, such as Undo. These kinds of files should only exist during an AutoCAD session but may be left behind if AutoCAD crashes or is terminated.
** .as$*
A temporary file created by earlier versions of Microsoft Word containing a snapshot of the currently opened document and which is used to recover from a program crash.
** .asd*
A temporary file created by Microsoft Word containing a snapshot of the currently opened document and which is used to recover from a program crash.
** .crdownload*
A partial download file created by Google Chrome. The .crdownload extension is removed from the file when the file has finished downloading.
** .download*
A partial download file created by various web browsers. The .download extension is removed from the file when the file has finished downloading.
** .dwl*
A lock file created by AutoCAD containing locking information about a drawing.
** .dwl2*
A lock file created by AutoCAD containing locking information about a drawing.
* .filepart
A partial download file created by WinSCP. The .filepart extension is removed from the file when the file has finished downloading.
** .laccdb*
A lock file created by Microsoft Access, a database management program, when a .accdb database is opened.
** .ldb*
A lock file created by Microsoft Access, a database management program, when a .mdb database is opened.
** .lck*
A lock file created by various programs to determine whether a program or file is in use.
** .lock*
A lock file created by various programs to determine whether a program or file is in use.
** .part*
A partial download file created by various download managers and removed when the file has finished downloading.
** .partial*
A partial download file created by Microsoft Internet Explorer 9. The .partial extension is removed from the file when the file has finished downloading.
** .sv$*
A backup file created by AutoCAD when autosaving.
** .temp*
A temporary file created by various programs.
** .tmp*
A temporary file created by various programs.
** .!ut*
A partial download file created by uTorrent, a BitTorrent client. The .!ut extension is removed from the file when the file has finished downloading.
** .utpart*
A partial download file created by uTorrent, a BitTorrent client.
Activity
calmh commentedon Apr 12, 2015
Yeah... I'm somewhat considering a default list of ignores (as mentioned in 1000 other places), but with an even stronger level of suppression.
The main problem with ignoring a bunch of stuff is that we can no longer delete directories with those files in them. An idea would be to have a certain class of file be ignored and nuked from directories we are trying to delete.
.DS_Storeis a prime candidate for this, as it's existence doesn't really mean the directory is not empty enough to be deleted.canton7 commentedon Apr 13, 2015
👍 As a user, I would love the ability to add ignores to this list: there are files I want to ignore and don't care about losing, but that are specific to my system.
fabienengels commentedon Apr 13, 2015
I agree, to have a default ignore list for these files would be awesome. 👍
Maybe one day Apple will stop to use them or store them in a separate directory ...
[-]v0.11beta sync-conflict w/system files e.g. .DS_Store[/-][+]Ability to "hard-ignore" files, with a default set of extensions.[/+]calmh commentedon May 1, 2015
I liked the suggestion in the forum for a flag somehow in stignore to indicate "delete this file if it blocks a directory removal". That would solve this nicely I think.
canton7 commentedon May 1, 2015
Agreed. I think there is a conceptual difference between "I don't want you to sync this important file", and "I don't want you to sync this rubbish that I can't get rid of but don't care about"
dcarosone commentedon May 1, 2015
djtm commentedon May 30, 2015
I'd like to add sqlite *-shm and *-wal files to the default wishlist for ignored files (#889). (Also, let's not forget about the CACHEDIR tag.)
djtm commentedon May 30, 2015
The owncloud client's exclude list is probably a good starting point for defaults: https://github.com/owncloud/client/blob/master/sync-exclude.lst
jorangreef commentedon May 31, 2015
Ignoring the sqlite write ahead log (*-wal) could leave your sqlite db corrupted in the event of a crash.
djtm commentedon Jun 2, 2015
@jorangreef 👍 Thanks
jorangreef commentedon Jun 2, 2015
If it helps, here is the default ignore list I compiled for Ronomon's new sync app:
Ignored folders
.AppleDouble
A hidden folder created on some NAS devices.
.DocumentRevisions-V100
A system folder created by Mac OS X containing different revisions made to files by apps that support Versions.
.fseventsd
A system folder created by Mac OS X containing logs of file system events, logged by a monitoring background process called fsevents, whenever files are created, modified, or deleted.
.Spotlight-V100
A system folder created by Mac OS X containing metadata indexes and indexing rules for Spotlight.
.TemporaryItems
A system folder created by Mac OS X for temporary storage.
.Trash
A system folder created by Mac OS X (on the boot volume) or Ubuntu to store deleted files and deleted folders which have not yet been erased from Trash.
.Trashes
A system folder created by Mac OS X (on volumes other than the boot volume) to store deleted files and deleted folders which have not yet been erased from Trash.
.Trash-*
A system folder created by Ubuntu to store deleted files and deleted folders which have not yet been erased from Trash for a specific user (UID).
jorangreef commentedon Jun 2, 2015
Ignored files
._*
An "AppleDouble" system file created by Mac OS X on volumes that do not natively support proprietary HFS file system features (e.g. FAT32 thumb drives, Windows fileshares etc.). When a file is copied from a Mac to such a volume, the data fork of the file is stored under the regular filename, and any additional HFS information (e.g. extended attributes, resource fork, type, text encoding etc.) is stored in a second file (in AppleDouble format), using the regular filename prepended with _.__. AppleDouble files are hidden on Mac and Linux but visible on other operating systems.
.apdisk
A system file created by Mac OS X to store information about mounted folders on a Windows network.
desktop.ini
A system file created by Windows that determines the way a folder is displayed (including icon and localized name) if a custom appearance has been set for the folder.
ehThumbs.db
A system file created by Windows XP Media Center Edition to store thumbnail previews of video files.
.DS_Store
A "Desktop Services Store" system file created by Mac OS X to store custom attributes for a given folder such as view options, the position of icons and choice of background image.
Icon\r
A 0-byte file stored within a folder on Mac OS X to indicate that the folder has a custom icon. The icon data is stored in the com.apple.ResourceFork extended attribute of the file, and not in the file itself.
.localized
A 0-byte file stored within a folder on Mac OS X to indicate to the Finder that the folder has various localized names depending on the user's locale and that a localized name can be displayed for the folder if one has been defined. For example, the folder "Library" might be displayed as "Bibliothèque" if the user's language has been set to French.
Thumbs.db
A system file created by Windows to store thumbnail previews of various graphics, pictures, photos, documents and files (e.g. .jpeg, .bmp, .gif, .tif, .pdf, .htm) when these files are viewed in Windows Explorer's Thumbnail or Filmstrip view.
** .~***
A temporary file.
** ~.tmp*
A temporary file.
** ~$***
A temporary file.
** .ac$*
A temporary file created by AutoCAD containing information used by various AutoCAD commands, such as Undo. These kinds of files should only exist during an AutoCAD session but may be left behind if AutoCAD crashes or is terminated.
** .as$*
A temporary file created by earlier versions of Microsoft Word containing a snapshot of the currently opened document and which is used to recover from a program crash.
** .asd*
A temporary file created by Microsoft Word containing a snapshot of the currently opened document and which is used to recover from a program crash.
** .crdownload*
A partial download file created by Google Chrome. The .crdownload extension is removed from the file when the file has finished downloading.
** .download*
A partial download file created by various web browsers. The .download extension is removed from the file when the file has finished downloading.
** .dwl*
A lock file created by AutoCAD containing locking information about a drawing.
** .dwl2*
A lock file created by AutoCAD containing locking information about a drawing.
* .filepart
A partial download file created by WinSCP. The .filepart extension is removed from the file when the file has finished downloading.
** .laccdb*
A lock file created by Microsoft Access, a database management program, when a .accdb database is opened.
** .ldb*
A lock file created by Microsoft Access, a database management program, when a .mdb database is opened.
** .lck*
A lock file created by various programs to determine whether a program or file is in use.
** .lock*
A lock file created by various programs to determine whether a program or file is in use.
** .part*
A partial download file created by various download managers and removed when the file has finished downloading.
** .partial*
A partial download file created by Microsoft Internet Explorer 9. The .partial extension is removed from the file when the file has finished downloading.
** .sv$*
A backup file created by AutoCAD when autosaving.
** .temp*
A temporary file created by various programs.
** .tmp*
A temporary file created by various programs.
** .!ut*
A partial download file created by uTorrent, a BitTorrent client. The .!ut extension is removed from the file when the file has finished downloading.
** .utpart*
A partial download file created by uTorrent, a BitTorrent client.
Added support for nuking files (fixes syncthing#1631)
Added support for nuking files (fixes syncthing#1631)
Added support for nuking files (fixes syncthing#1631)
Added support for nuking files (fixes syncthing#1631)
Added support for nuking files (fixes syncthing#1631)
Added support for nuking files (fixes syncthing#1631)
Added support for nuking files (fixes syncthing#1631)
calmh commentedon Nov 19, 2015
Added to #2491.