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

Implement ls API #7

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Implement ls API #7

merged 1 commit into from
Aug 17, 2024

Conversation

yanghua
Copy link
Collaborator

@yanghua yanghua commented Aug 14, 2024

Summary 📝

Implement ls API

Details

Describe more what you did on changes.

  1. (...)
  2. (...)

Bugfixes 🐛 (delete if dind't have any)

Checks

  • Closed #798
  • Tested Changes
  • Stakeholder Approval

@yanghua yanghua self-assigned this Aug 14, 2024
self.version_aware = version_aware
super().__init__(**kwargs)

def ls(self, path, detail=False, refresh=False, versions=False, **kwargs):
Copy link
Collaborator Author

@yanghua yanghua Aug 16, 2024

Choose a reason for hiding this comment

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

The versioned list has not been tested currently. It needs to wait until the r/w operation of the file is available. A TODO issue #11 has been recorded

Comment on lines +135 to +141
"Key": bucket.name,
"Size": 0,
"StorageClass": "BUCKET",
"size": 0,
"type": "directory",
"name": bucket.name,
Copy link
Collaborator Author

@yanghua yanghua Aug 16, 2024

Choose a reason for hiding this comment

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

All the returned object schemas are currently aligned with s3fs as much as possible.

@yanghua yanghua requested a review from xianyinxin August 16, 2024 02:54
@yanghua yanghua added the api fsspec api label Aug 16, 2024
tosfs/tests/conftest.py Outdated Show resolved Hide resolved
tosfs/core.py Outdated Show resolved Hide resolved
tosfs/core.py Outdated Show resolved Hide resolved
@xianyinxin xianyinxin merged commit 228c55e into main Aug 17, 2024
8 checks passed
@xianyinxin xianyinxin deleted the 6-tosfs-ls branch August 17, 2024 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api fsspec api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants