-
Notifications
You must be signed in to change notification settings - Fork 104
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
Check for Hdi_isfolder with a capital #418
Conversation
Currently `adlfs` is telling me that my folder is a file. When printing `props`, I see `Hdi_isfolder` is capitalized whereas in the code it is not. For example on my folder (`folder/.dev/Air`) I have the following `props` which are passed to `_details` (which sets whether it is a file or directory): ``` {'name': 'folder/.dev/Air', 'container': 'mycontainer', 'snapshot': None, 'version_id': None, 'is_current_version': None, 'blob_type': <BlobType.BLOCKBLOB: 'BlockBlob'>, 'metadata': {'Hdi_isfolder': 'true'}, 'encrypted_metadata': None, 'last_modified': datetime.datetime(2023, 6, 14, 22, 42, 5, tzinfo=datetime.timezone.utc), 'etag': '"0x8DB6D28944E30E9"', 'size': 0, 'content_range': None, 'append_blob_committed_block_count': None, 'is_append_blob_sealed': None, 'page_blob_sequence_number': None, 'server_encrypted': True, 'copy': {'id': None, 'source': None, 'status': None, 'progress': None, 'completion_time': None, 'status_description': None, 'incremental_copy': None, 'destination_snapshot': None}, 'content_settings': {'content_type': 'application/octet-stream', 'content_encoding': None, 'content_language': None, 'content_md5': None, 'content_disposition': None, 'cache_control': None}, 'lease': {'status': 'unlocked', 'state': 'available', 'duration': None}, 'blob_tier': None, 'rehydrate_priority': None, 'blob_tier_change_time': None, 'blob_tier_inferred': None, 'deleted': False, 'deleted_time': None, 'remaining_retention_days': None, 'creation_time': datetime.datetime(2023, 6, 14, 22, 42, 5, tzinfo=datetime.timezone.utc), 'archive_status': None, 'encryption_key_sha256': None, 'encryption_scope': None, 'request_server_encrypted': True, 'object_replication_source_properties': [], 'object_replication_destination_policy': None, 'last_accessed_on': None, 'tag_count': None, 'tags': None, 'immutability_policy': {'expiry_time': None, 'policy_mode': None}, 'has_legal_hold': None, 'has_versions_only': None} ``` Then `_details` sets this as a `file`.
Interestingly, in the same container, code, and environment, on another folder I get these
|
@TomAugspurger or @hayesgb, any feedback? Is there a chance of getting this merged? |
Thanks @basnijholt. I didn't really understand the changes until reading #418. Does azurite support these |
Did you have a chance to look at tests with Azurite? |
Can you add a test? |
Unfortunately, I no longer work with Azure Data Lake and cannot find the bandwidth to sit down and write a proper test for this. The code change is really trivial though and this code ran in production for many months in an internal project. |
No worries. If anyone else could provide a test then we can get this merged (assuming Azurite supports blob metadata, which I haven’t confirmed. If it doesn’t support metadata then we’ll merge it without a test).
… On Dec 6, 2023, at 6:58 PM, Bas Nijholt ***@***.***> wrote:
Unfortunately, I no longer work with Azure Data Lake and cannot find the bandwidth to sit down and write a proper test for this.
The code change is really trivial though and this code ran in production for many months in an internal project.
—
Reply to this email directly, view it on GitHub <#418 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKAOISVSBYWXOE5IXR2DJTYIEIEFAVCNFSM6AAAAAAZN76BYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTHE3DANRZGE>.
You are receiving this because you were mentioned.
|
Azurite does support metadata. Added a test and changelog entry. |
Thanks @basnijholt! |
Currently
adlfs
is telling me that my folder is a file.When printing
props
, I seeHdi_isfolder
is capitalized whereas in the code it is not.For example on my folder (
folder/.dev/Air
) I have the followingprops
which are passed to_details
(which sets whether it is a file or directory):Then
_details
sets this as afile
.Closes #440