Is there way to set custom metadata to files of any type? I want the metadata to be copied when the file is renamed, moved or copied. I don't want to use ADS.
Asked
Active
Viewed 3,915 times
1 Answers
3
No. At some point your "metadata" just becomes "data" which should be stored inside (or with) the file itself.
If you are trying to avoid having a database, but store some sort of state data with the file, you have a few options:
- encode the metadata in the file path (ie. use the folder name to contain the metadata)
- rename the file and encode the metadata in the filename
- create a separate file (e.g. txt or xml) and .zip it with the file (lots of modern file formats do this e.g. .docx .xlsx etc are just zip files)
or you can bite the bullet and have a database separate to the file system. Some file formats allow metadata inside the file itself (e.g. MP3)

SSS
- 4,807
- 1
- 23
- 44
-
1Third option looks much better than the rest. – Faisal Mq Oct 14 '15 at 12:37