[Mono-dev] chmod allows wildcards?

Robert Jordan robertj at gmx.net
Thu Nov 12 05:53:39 EST 2009


APS wrote:
> Hi,
> I need to chmod a directory with all contained files.
> I saw Mono.Unix.Native.Syscall.chmod Method but I cant understand if it 
> can be used as recursive or with wildcards.
> To set 700 to all files in a folder I can do 
> Mono.Unix.Native.Syscall.chmod('/path/*', S_IRUSR & S_IWUSR & S_IXUSR) ?

Syscalls and libc functions don't support wildcards.
Even the corresponding command line tools do not support
them as it's the job of the shell to expand wildcards.


More information about the Mono-devel-list mailing list