Hi there,
any way to realize a pm_ApiCli::ch_mode-Call only for files?
Doesnt work
I also played around with FileManager to checkout if I could build a recursive function on my own to start at a given Directory and scan down recusively for only files and do an FileManager->chmod (little dirty) but there is also no way to decide whether the given path is an dir or an file...
any way to realize a pm_ApiCli::ch_mode-Call only for files?
PHP:
pm_ApiCli::callSbin(
'ch_mode',
[
$permissions,
'-R',
'$(find ' . $path . ' -type f)',
]
);
Doesnt work
Error: Execution ch_mode has failed with exit code 1, stdout: , stderr: ch_mode: $(find /var/www/vhosts/test.de/httpdocs/test -type f): No such file or directory
I also played around with FileManager to checkout if I could build a recursive function on my own to start at a given Directory and scan down recusively for only files and do an FileManager->chmod (little dirty) but there is also no way to decide whether the given path is an dir or an file...