Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Set directory permissions

From: Girona, Spain
Posts: 1
Member Since: 10/04/18
posted October 4, 2018 5:55 AM


I would like to know how to set directory permission (ex:777) when create a new Directory.
Thank you very much

best regards,
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 436
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted October 5, 2018 5:27 PM

Thank you for your post.

It's not possible to do this at the time of directory creation with FTP, only after. In the FTP protocol itself, there isn't a built-in method for this, but the most often used command for this is CHMOD, and you can send the CHMOD command to modify permissions using the Ftp.Send() method:

You will want to first make sure your server supports this and if so, I'd suggest you examine the server's documentation for its specific CHMOD implementation, as it should require use of the SITE command as well.

Using Dart's SFTP component found in PowerTCP SSH and SFTP for .NET may make more sense, as you can set permissions at the time of directory creation:

If you are interested in our PowerTCP SSH and SFTP for .NET please feel free to download a free trial and contact me at sales@dart.com for purchase and pricing information.


-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.

Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX