-
Notifications
You must be signed in to change notification settings - Fork 3
Change the library to support download only requests #2
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
base: master
Are you sure you want to change the base?
Conversation
| key = bucket.get_key(key_path) | ||
|
|
||
| if not key: | ||
| raise FilesystemError("File is not Found") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use single quotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alaayameen, this is not my code.
| return [] | ||
|
|
||
| def isfile(self, path): | ||
| return True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this always returns True ? also the same for islink and isdir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alaayameen, this modification is meant to overwrite the default settings and only serve files, directories unsupported.
| self.conn.get_all_buckets() | ||
| except boto.exception.S3ResponseError: | ||
| def validate_authentication(self, username, password, handler): | ||
| if username == settings.FTP_USERNAME and password == settings.FTP_PASSWORD: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use asserts for settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alaayameen, I don't think it will work this way because this should respond with FTP standers.
No description provided.