Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(oli): implement oli stat #1778

Merged
merged 3 commits into from
Mar 27, 2023
Merged

feat(oli): implement oli stat #1778

merged 3 commits into from
Mar 27, 2023

Conversation

knight42
Copy link
Contributor

Fix #1775

Output:

$ ./target/debug/oli stat s3://prod/20230313/model_asset.txt
Path: prod/20230313/model_asset.txt
Size: 85248
Etag: "44739e04cf530998004923a11a981728"
Type: file
Content-Type: binary/octet-stream
LastModified: 2023-03-13 2:42:28.0 +00:00:00

$ ./target/debug/oli stat s3://prod/20230313/
Path: prod/20230313/
Size: 0
Type: dir

$ ./target/debug/oli stat ./Cargo.toml
Path: github/opendal/Cargo.toml
Size: 990
Type: file
LastModified: 2023-03-24 15:24:29.749171368 +00:00:00

Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Great!

@Xuanwo Xuanwo merged commit 0fc67b6 into apache:main Mar 27, 2023
@knight42 knight42 deleted the feat/oli-stat branch March 27, 2023 16:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

oli: implement oli stat(ostat)
2 participants