alist icon indicating copy to clipboard operation
alist copied to clipboard

返回信息里,给出所属的storage的id

Open ChenyangGao opened this issue 1 year ago • 1 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure this feature is not implemented.
  • [X] I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

希望能在 /api/fs/get 和 /api/fs/list 返回的信息里,给出所属的 storage 的 id 目前,如果一个路径是 storage,那么它的 hash_info 为 None (根目录为特例,无论如何都是 None,所以需要额外判断),然后,我平常用 alist 的 web api 的时候,需要改名、移动和删除等操作时,普通文件就直接操作,遇到 storage 就要去把所有 storage 都罗列出来,执行改名和删除,如果能直接在属性上就有 storage 的 id,就能直接使用 /api/admin/storage/get 获取信息,不需要把所有的storage都罗列出来才能进行比对

Suggested solution / 实现思路

No response

Additional context / 附件

No response

ChenyangGao avatar Jul 05 '24 06:07 ChenyangGao

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 18 '24 08:08 stale[bot]

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

github-actions[bot] avatar Aug 29 '24 00:08 github-actions[bot]