Page 1 of 1

Alternatives to -revert

Posted: 16 Aug 2019, 13:48
by devster
I unfortunately lost the history file, which, as far as I understand, is the only reference the -revert command uses to restore the file to its original location.
It seems feasible using a command like the following:

Code: Select all

filebot -rename --db xattr --action move --format '{original}'
provided xattr are correct and available, to move files to a specific folder with the original name, but this seems to work only on files, not folder structures.

Could I use the "{history}" binding (without the file) to rebuild also the folder they were contained in, but in a different absolute path?
Example:

Code: Select all

original:
/mnt/A/SeriesName/EpisodeName

renamed:
/mnt/output/{plex}

revert:
/media/B/SeriesName/EpisodeName

Re: Alternatives to -revert

Posted: 16 Aug 2019, 15:03
by rednoah
1.
You probably want to use -r recursive flag to process the entire input file structure.


2.
FileBot doesn't store the original file path in xattr, only the filename. So the original file path information is going to be lost.

You'll have to use --output and --format to define the absolute destination path for the reverted file.

Re: Alternatives to -revert

Posted: 16 Aug 2019, 15:37
by devster
2. Thanks, makes sense, just checking.