Topic "Set permissions for new directory via .NET / COM"

Author Message
AlainC
[View user's profile]

Joined: 2013-10-30
Posts: 3
When using
Code:
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 Smile)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your post.

This request has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1075
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License