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

stat op support more fields #150

Closed
3 of 4 tasks
sundy-li opened this issue Mar 15, 2022 · 4 comments · Fixed by #304
Closed
3 of 4 tasks

stat op support more fields #150

sundy-li opened this issue Mar 15, 2022 · 4 comments · Fixed by #304
Assignees
Labels
help wanted Extra attention is needed

Comments

@sundy-li
Copy link
Contributor

sundy-li commented Mar 15, 2022

stat support return:

  • name
  • size
  • md5
  • last_modified
@sundy-li sundy-li added the help wanted Extra attention is needed label Mar 15, 2022
@Xuanwo Xuanwo self-assigned this Mar 18, 2022
@drivebyer
Copy link

Hi, i'am a little confused aboud the name, is there any difference with path of Metadata?

@sundy-li
Copy link
Contributor Author

Yes, but I just want to have the file_name. Now I need to create another method to extract the name.

@Xuanwo
Copy link
Member

Xuanwo commented Mar 30, 2022

Hi, i'am a little confused aboud the name, is there any difference with path of Metadata?

Yep. path is the relative path to backend's root, and name is the base name of this file.

For example:

/root/path/to/a.pdf on a backend with the root /root:

  • path: /path/to/a.pdf
  • name: a.pdf

/root/path/to/ on a backend with the root /root:

  • path: /path/to/
  • name: to/

@drivebyer
Copy link

Got it! thanks @sundy-li @Xuanwo

@Xuanwo Xuanwo moved this to 📋 Backlog in Databend Storage Layer May 20, 2022
xprazak2 added a commit to xprazak2/opendal that referenced this issue May 28, 2022
@Xuanwo Xuanwo linked a pull request May 28, 2022 that will close this issue
xprazak2 added a commit to xprazak2/opendal that referenced this issue Jun 1, 2022
xprazak2 added a commit to xprazak2/opendal that referenced this issue Jun 1, 2022
Xuanwo added a commit that referenced this issue Jun 1, 2022
* feat: Add name to object metadata (#150)

* Make rustfmt happy

Signed-off-by: Xuanwo <github@xuanwo.io>

Co-authored-by: Xuanwo <github@xuanwo.io>
Repository owner moved this from 📋 Backlog to 📦 Done in Databend Storage Layer Jun 1, 2022
@Xuanwo Xuanwo moved this to 📋 Backlog in Xuanwo's Work Sep 15, 2022
@Xuanwo Xuanwo moved this from 📋 Backlog to 📦 Done in Xuanwo's Work Sep 15, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants