Files to folders based on properties

Groups files into folders based on user defined file properties.

You are now following this Submission

This functions goal is to reorganize the user chosen files into folders. The file are organized based on user defined file property values. Each such property results in a folder populated by the files, with such a value of that property.
I've written this function to make the task of arranging my camera photos by their date into appropriate folders automatically- this allows me to invest a little effort into ordering all those photos I'm having every few weeks. Naturally it combines files from different sources (cameras in my case).
But as mentioned above using the date is only the tip of the iceberg. You can use Go location (when available) image/video frame dimensions, file size, and any other file property!
The function inputs are defined in pairs- "parameter name" followed by parameter value, where parameters ordering is not important. Each parameter can be omitted. In such a case default values will be used.

Cite As

Nikolay S. (2026). Files to folders based on properties (https://www.mathworks.com/matlabcentral/fileexchange/41431-files-to-folders-based-on-properties), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Some bug fixes, sub-function updates and code simplifications. Wait-bar is now file-size dependent, and thus more accurate.

1.0.0.0