PhotoStructure’s ignorable-pattern list already includes @eaDir
(and several hundred other patterns!)
Did you see that PhotoStructure imported files in those directories?
You can check quickly with the list
tool
$ photostructure list | grep @eaDir
Here’s a list of directories that are always ignored. There are many other lists of directories that are only ignored in other contexts (like snap directories, mounted DMGs, …). You can override any of these by including them in the neverIgnored
system setting.
/**
* All these directories are sufficiently nerdy that they uniquely identify a
* system or development directory, and don't need to be anchored to, say, / to
* be sufficiently constrained.
*/
private readonly ignorableDirectories = new Set(
[
"#snapshot", // backup snapshots on synology
"__MACOSX", // resource fork
"_includes", // source tree
"@eaDir", // synology thumbs
"@Recycle", // qnap trash
"@SynoResource", // synology
"#recycle", // synology trash
"$Recycle.Bin", // windows trash
"3rdParty", // source
"Application Data", // win
"Application Support", // mac
"Applications", // mac
"arangodb", // their 3rdparty subdir is a menace
"cache",
"caches",
"CacheClip", // movie app cache dir
"cmake", // dev
"com.apple.TimeMachine.localsnapshots", // mac
"cpan", // hello old frenemy
"DefinitelyTyped", // roughly infinite subdirectories
"Desktop DB", // mac
"Desktop DF", // mac
"Desktop.ini", // mac
"DisplayDriver", // win
// "Download", // these might actually have something
// "Downloads",
"ehthumbs.db", // win
"iMovie Cache",
"iTunes Cache",
"iTunes Media", // music videos: see https://gitlab.com/mceachen/photostructure/issues/102
"iTunes", // music videos: see https://gitlab.com/mceachen/photostructure/issues/102
"lost+found", // posix
"Network Trash Folder",
"node_modules", // ugh, nothing good in there
"pkgconfig", // dev
"pkgs", // python
"Program Files (x86)", //win
"Program Files", // win
"ProgramData", // win
"site-packages", // python
"spotifycache", // muzak
"SteamApps", // win
"System Volume Information", // win
"System32", // win
"temp",
"Temporary Items", // win
"test_suite", // source
"testutils", // source
"third_party", // source
"Thumbnails", // iPhoto
"Thumbs.db", // win
"tmp",
"Trash", // xdg trash https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
"Windows10Upgrade",
"Xcode.app"
].map(s => s.toLowerCase())
)