Execute Program on processed Folder. not on file

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Gutz-Pilz
Power User
Posts: 17
Joined: 29 Aug 2013, 16:03

Execute Program on processed Folder. not on file

Post by Gutz-Pilz »

Hi,
is there a way to use this command with folder
--def "exec=touch '{file}'"

like
--def "exec=touch '{folder}'"
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Execute Program on processed Folder. not on file

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply