chmod allows wildcards?

View: New views
2 Messages — Rating Filter:   Alert me  

chmod allows wildcards?

by aps-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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) ?
Thanks



_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: chmod allows wildcards?

by Robert Jordan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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.

Robert

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list