|Dart Home | PowerTCP FTP for .NET | Custom Development||Reply | PowerTCP FTP for .NET Topics | Forums|
|Author||Forum: PowerTCP FTP for .NET|
Topic: Set directory permissions
From: Girona, Spain
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
|Jamie Powell (Admin)
From: Rome, NY USA
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 firstname.lastname@example.org for purchase and pricing information.
|Reply | PowerTCP FTP for .NET Topics | Forums|
|This site is powered by PowerTCP WebServer for ActiveX|