$ 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
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.
# artificial output I would like
$ stat -c '%N' software/*
Dash.dmg -> /cephfs/software/Dash.dmg
Parallels Desktop/ -> /cephfs/software/Parallels Desktop/
I only work in black and sometimes very, very dark grey. (Batman)
FileBot does not work on directories. FileBot works on files. You can re-organized files into new directories, but you can't directly process directories, since FileBot will always process the files inside those directories, if you pass a directory as input argument.
I suppose you could do -rename -r to process all files from all sub directories, and then decide where each file needs to go, e.g. based on how many folder levels the file path has. But you won't be able to symlink directories either. You'll just end up with a symlink for each file.
I see.
Is there a way to script that? I see in the amc.groovy script the test for a directory exists, but from what I see is only to scan for files inside it.
I only work in black and sometimes very, very dark grey. (Batman)