Page 1 of 1

Set umask/permissions for newly created directories

Posted: 10 May 2021, 05:39
by ofnbpm
In my scenario I'm running the `fn:amc` script through the filebot cli and I want to be able to control the permissions of the directories that filebot creates when it moves the files. How can I do this? Is it possible? Thank you!

Re: Set umask/permissions for newly created directories

Posted: 10 May 2021, 06:14
by rednoah
Presumably, the filebot process will inherit and use the umask of the current shell context. This should work for any tool or program that doesn't explicitly set the permissions one way or another.


If that doesn't work for you, then you can always use --def exec to call chown to explicitly set the file and folder permissions after processing:

Code: Select all

--def exec="echo {quote f}"