Help with particular usecase - writing .xattr info with source files

Any questions? Need some help?
Post Reply
dongle
Posts: 3
Joined: 12 Feb 2025, 22:49

Help with particular usecase - writing .xattr info with source files

Post by dongle »

Hi,

My setup is that I have a mergefs storage pool with my seeding torrents. Many of my torrents are obscure media that require user input for FileBot to correctly identify them. I am symlinking these files into various folder structures for different purposes (I have a master collection for everything, a share for my parents with a subset of the media, a share for my partner with a different subset, etc). On top of this, I have a major storage rearrangement coming up when I overhaul my home server, which may change paths and require re-symlinking my media. (Why symlinking? When a given torrent is trumped and gets deleted, it's very easy for a script to find and remove dead symlinks, plus the symlinks work across drives/filesystems.)

Ideally, I'd want FileBot to add the .xattr files with metadata to the source files. I know FileBot needs a rename action, but when I try to rename in place, it skips files because they already exist (which is good and safe behavior).

Any advice?

Thanks for any help.
User avatar
rednoah
The Source
Posts: 23833
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with particular usecase - writing .xattr info with source files

Post by rednoah »

:?: Did you configure FileBot to use .xattr folders instead of native file system xattr for metadata storage?

:arrow: You can add and enable the Set xattr metadata on source files post-process script to set xattr metadata on the source files as well, after moving or linking files as usual.
:idea: Please read the FAQ and How to Request Help.
dongle
Posts: 3
Joined: 12 Feb 2025, 22:49

Re: Help with particular usecase - writing .xattr info with source files

Post by dongle »

Thank you for your prompt assistance. The script you linked does exactly what I needed.
Post Reply