c# - System.Net.FtpClient - changing access right to file -
i have problem net.ftpclient.
how change rights file on server. use execute error: chmod not understood
if (!(reply = conn.execute("chmod 666 file.txt")).success) { throw new ftpcommandexception(reply); }
package from: https://netftp.codeplex.com/
try solution
if (!(reply = conn.execute("site chmod 666 file.txt")).success) { throw new ftpcommandexception(reply); }
refer here documentation
if doesn' work check if server running under windows system. if yes not allow set file permissions via ftp (unix-running servers allow that).
if hosting provider has web-based control panel allows set file permissions go there , make changes.
Comments
Post a Comment