Page 1 of 1
Execute Program on processed Folder. not on file
Posted: 09 Aug 2015, 15:51
by Gutz-Pilz
Hi,
is there a way to use this command with folder
--def "exec=touch '{file}'"
like
--def "exec=touch '{folder}'"
Re: Execute Program on processed Folder. not on file
Posted: 09 Aug 2015, 17:29
by rednoah
1.
If FileBot is processing the folder as single unit (e.g. DVD folder) then {file} will be that folder, and {folder} is jus1t short for {file.parentFile} anyway.
@see
https://github.com/svn2github/filebot/b ... .java#L745
2.
If you need conditionals then you can just do something like
{file.isDirectory() ? 'A' : 'B'}
@see
File.isDirectory()
PS: Thanks for you RaspPi tutorial! I'm sure it took a while to get all the native code working.