Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
66 views
in .NET FTP by (120 points)
I have a test sftp that is windows server based. But our productions server is linux and one of the requirement is that we set our file permission to "644" after we upload the file.

I am trying a command like secureftpconnection.ChangeMode("644", filepath). When i am testing locally i don't see any  log entries on the sftp server that file permissions are being changed on windows.

To test on windows i tried secureftpconnection.ChangeMode("Attrib +H", filepath) and i dont see that working either.

My question is if i am doing this correctly or is there another method i should be using?

1 Answer

0 votes
by (154k points)
You need to use secureftpconnection.ChangeMode("0644", filepath)

Categories

...