Skip to content

Ability to "hard-ignore" files, with a default set of extensions. #1631

Closed

Description

@majorsl

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.

Activity

  1. calmh commented on Apr 12, 2015

    @calmh
    Member

    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.

  2. canton7 commented on Apr 13, 2015

    @canton7
    Contributor

    👍 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.

  3. fabienengels commented on Apr 13, 2015

    @fabienengels

    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 ...

  4. 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
  5. added
    enhancement
    on Apr 14, 2015
  6. calmh commented on May 1, 2015

    @calmh
    Member

    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.

  7. canton7 commented on May 1, 2015

    @canton7
    Contributor

    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"

  8. dcarosone commented on May 1, 2015

    @dcarosone
  9. djtm commented on May 30, 2015

    @djtm

    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.)

  10. djtm commented on May 30, 2015

    @djtm
  11. jorangreef commented on May 31, 2015

    @jorangreef

    Ignoring the sqlite write ahead log (*-wal) could leave your sqlite db corrupted in the event of a crash.

  12. djtm commented on Jun 2, 2015

    @djtm

    @jorangreef 👍 Thanks

  13. jorangreef commented on Jun 2, 2015

    @jorangreef

    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).

  14. jorangreef commented on Jun 2, 2015

    @jorangreef

    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.

  15. added 5 commits that reference this issue on Aug 17, 2015
    626c5d5
    7fdfd7e
    b9ac3d4
    a9dcb16
    2ee960c
  16. added 2 commits that reference this issue on Sep 2, 2015
    4d08449
    4ef98fc
  17. calmh commented on Nov 19, 2015

    @calmh
    Member

    Added to #2491.

  18. locked and limited conversation to collaborators on Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions