Skip to content

Conversation

@awartani
Copy link

No description provided.

key = bucket.get_key(key_path)

if not key:
raise FilesystemError("File is not Found")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use single quotation.

Copy link
Author

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

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

Copy link
Author

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:

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

Copy link
Author

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants