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

RFE: Check permissions before uploading big files #2

Open
reidrac opened this issue Aug 31, 2011 · 1 comment
Open

RFE: Check permissions before uploading big files #2

reidrac opened this issue Aug 31, 2011 · 1 comment
Labels

Comments

@reidrac
Copy link
Contributor

reidrac commented Aug 31, 2011

The communication between the SFTP daemon and Swift is over HTTP, and it means that when uploading a big file without write permissions we need to upload the whole file before getting an error.

It would be a good idea testing the permissions first (ie. create a zero bytes file), so the SFTP service returns the error ASAP.

@reidrac
Copy link
Contributor Author

reidrac commented Sep 1, 2011

After a quick look I think this should be implemented on the FS level, and that means on ftp-cloudfs (well, we need to factorize the fs code out of that project).

CloudFilesFS.open should try to create a zero bytes object when mode is in ["w", "rw"] before returning the CloudFilesFD object.

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

No branches or pull requests

1 participant