Skip to content

Conversation

@KeerthiYandaOS
Copy link
Contributor

Addresses the issue #340

@KeerthiYandaOS
Copy link
Contributor Author

@hayesgb Can you please review the pull request? I'm unable to access the build logs, can you provide me access or steps to get the access? Thanks.

f"https://{self.account_name}.blob.core.windows.net"
)
elif self.account_name is not None:
if hasattr(self, 'account_host'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you help me understand where this account_host attribute coming from? Is this from a subclass?

I'd rather have the __init__ method accept something like account_host and make it a property on AzureBlobFileSystem. Then we can avoid all the hasattrs.

The interaction with the current account_name will be a bit complicated. Can you share an example of how account_host is being specified? Maybe we just don't allow users to pass both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adlfs is always appending the public blob endpoint. so having the ability to pass the account_host will help in accessing the non-public regions like gov regions. As account_host is not mandatory I was thinking of consumers to pass as required. We can also add it in init and initialize it as None making as not a required property.

elif (
blob_["name"].count("/") == depth
and blob_["size"] == 0
and (hasattr(blob_, "size") and blob_["size"] == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you share a bit about why the blob_ would have a size attribute? Does the lack of size attribute indicate a "directory" marker?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes Tom, have seen the blob not having size if the blob type is not a file.

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.

3 participants