Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Set permissions for new directory via .NET / COM

Thanks for your post.

This request has been added to the tracker:
https://winscp.net/tracker/1075
AlainC

Set permissions for new directory via .NET / COM

When using
session.CreateDirectory(path)

the permissions can't be set like with transferoptions for files.

The mkdir-command in linux accepts this to be set (eg. "mkdir -m 770 path"), but CreateDirectory doesn't accepts options.
I can't work with 'ExecuteCommand("chmod 770 path") as the server at the other side doesn't allow commands to be set.

So if it would be possible to set directory-permission while creating, this would be a good improvement (at least for me :))