When PhotoStructure is importing files, it automatically excludes all hidden files, as well as operating system and application support directories.
Additionally, across all platforms, the following rules are also applied:
The contents of a directory that has a
.nomedia entry is ignored.
PhotoStructure extends this standard to make it easier to work with:
- Case doesn’t matter.
nomediawill all work.
NoMediadirectory entry can be a file or a directory.
- The file or directory can start with a period, but it doesn’t have to.
.nomediawill both work. __
NoMediais applied recursively to all children. For example, if you add a
NoMediafile to an external hard drive’s root directory, no files from that entire drive will be imported.
To create a
NoMedia file, navigate to the folder (or hierarchy of folders) that you want to exclude from PhotoStructure, right-click and pick “New Folder”), and rename it to
If a directory or file starts with a period, or “dot,” its contents will be ignored. On Mac and Linux, this will hide the file or directory from the Finder or Files browser (unless you enable “show hidden files”).
⚠️ Note that the Windows 10 Explorer can’t create dotfiles, as it interprets them as an invalid “nameless extension,” but you can create them via the terminal.
Hidden files via
Mac and Windows both support hiding files via file attributes, but this requires the use of a the command line tool
SetFile on a Mac, or
attrib on Windows.
⚠️ Note that some backup software and copying files or directories with these attributes from your NAS and back may strip these attributes, depending on what software you’re using.
TL;DR: What should I use to hide a directory? #
We recommend using
- it works on Windows, Mac, and Linux
- it works on all network file systems
- its supported by all backup software, and
- it’s easy to work with using GUI tools like the Mac Finder or Windows Explorer.
Please note #
Marking directories as hidden or with .nomedia is not retroactive. If a folder’s images and videos have already been copied into your library, those assets will remain in your library.
I marked a directory as .NoMedia, but sync is still searching inside that directory… #
PhotoStructure caches filesystem metadata as it imports files to reduce I/O on your drives and make your imports faster.
If you add a .NoMedia file while PhotoStructure is importing a directory, you can force PhotoStructure to re-examine that directory for .NoMedia by choosing “Pause” and then “Resume” from either the system tray or system navigation menu.
Photo by Annie Spratt