The command runner is a feature that enables you to execute any shell command you want before or after a certain event. Right now, these are the events:
Also, during the execution of the commands set for those hooks, there will be some environment variables available to help you perform your commands:
FILEwith the full absolute path to the changed file.
SCOPEwith the path to user's scope.
TRIGGERwith the name of the event.
USERNAMEwith the user's username.
DESTINATIONwith the absolute path to the destination. Only used for copy and rename.
At this moment, you can edit the commands via the command line interface, using the following commands (please check the flag
--helpto know more about them):
filebrowser cmds add before_copy "echo $FILE"
filebrowser cmds rm before_copy 0
filebrowser cmds ls
Or you can use the web interface to manage them via Settings → Global Settings.