File scanner lists include macOS Finder metadata files

Issue #765 resolved
prl created an issue

If the USB device has been on a macOS computer, it’s likely to have macOS Finder metadata files (what were once the file’s resource fork in older Apple operating systems). These files will be named as the original filename, but with a “._” prefix.

If a USB device is hotplugged, the file scanners are invoked, and the file lists that are produced by the scanners only test the file extension, so that all the “._” files that have an extension being matched by the scanners will appear in the scan list, even though they are not the correct file type.

Scanners should filter out filenames that start with “._”, as is already done in Components.MovieList.

Comments (2)

  1. Peter Urbanec

    [Scanner] Fix bug #765: File scanner lists include macOS Finder metadata files

    Filter out filenames that start with "._" (macOS Finder metadata files) when when scanning a device for files of a particular type.

    Because the metadata files have the same extension as the actual file, they are selected by Scanners even though the metadata file has unrelated content to what the extension suggests.

    This kind of filtering is already done for file list creation in Components.MovieList.

    → <<cset 99ddcb6a4177>>

  2. Log in to comment