Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the rights to the downloaded file #59

Closed
slagusev opened this issue Mar 14, 2017 · 4 comments
Closed

Changing the rights to the downloaded file #59

slagusev opened this issue Mar 14, 2017 · 4 comments

Comments

@slagusev
Copy link

Hello!
How can I set the permissions 777 on the uploaded FTP server file?

@robinrodricks
Copy link
Owner

robinrodricks commented Mar 14, 2017

Sorry, there is no in-built API for these. I'll add them shortly, but if you need it right now please use:

      if (!(reply = conn.Execute("SITE CHMOD 777 yourfilename.txt")).Success) {
             throw new FtpCommandException(reply);
      }

@robinrodricks
Copy link
Owner

Thanks to your idea, I have implemented the following new API. Check it out and let me know!

  • Chmod()
  • GetChmod()
  • SetFilePermissions()
  • GetFilePermissions()

@robinrodricks
Copy link
Owner

You can now just do:

client.Chmod("\path\to\file.txt", 777)

@robinrodricks
Copy link
Owner

You must download the latest from nuget to use it. https://www.nuget.org/packages/FluentFTP/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants