While examining image file extensions, skip over any files whose name begins with "." which on Linux & macOS are meant to be ignored.
On macOS specifically the Finder creates metadata files called ".DS_Store", leading me to submit this change, but many other dotfiles might exist that should also be ignored.
Edge case: someone could, for some reason, go against best practice and name their images using a leading dot.
While examining image file extensions, skip over any files whose name begins with "." which on Linux & macOS are meant to be ignored.
On macOS specifically the Finder creates metadata files called ".DS_Store", leading me to submit this change, but many other dotfiles might exist that should also be ignored.
Edge case: someone could, for some reason, go against best practice and name their images using a leading dot.