Generic rename
Posted: 05 Jan 2020, 00:10
I would like to start using FileBot for stuff other than media files.
I'm trying a very basic attempt with software.
This is the command:
However the output is surprising:
I'm unable to figure out why it's seemingly skipping directories.
Intended usage would be a keeplink with files and a keeplink with entire directories.
I'm trying a very basic attempt with software.
This is the command:
Code: Select all
$ filebot -rename --db file --action test software/ --format '{if (f.isDirectory()) {"cephfs-directory/$fn"} else {"cephfs/$fn"}}'
Code: Select all
$ ls -1F software/
Dash.dmg
Parallels Desktop/
$ filebot -rename --db file --action testsoftware/ --format '{if (f.isDirectory()) {"cephfs-directory/$fn"} else {"/cephfs/$fn"}}'
Rename files using [Plain File]
[TEST] from [software/Dash_5.0.2.dmg] to [/cephfs/Dash.dmg]
Processed 1 files
Intended usage would be a keeplink with files and a keeplink with entire directories.
Code: Select all
# artificial output I would like
$ stat -c '%N' software/*
Dash.dmg -> /cephfs/software/Dash.dmg
Parallels Desktop/ -> /cephfs/software/Parallels Desktop/