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

如何用命令行手动刷新Alist某个递归目录的所有内容 #6868

Closed
4 tasks done
Super-Passerby opened this issue Jul 24, 2024 · 5 comments
Closed
4 tasks done
Labels
enhancement New feature or request stale No activity for more than 30 days

Comments

@Super-Passerby
Copy link

Please make sure of the following things

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

Description of the feature / 需求描述

如题,如何用命令行手动刷新Alist某个递归目录的所有内容

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@Super-Passerby Super-Passerby added the enhancement New feature or request label Jul 24, 2024
@onexiaolaji
Copy link

可以吧
POST /api/fs/list

refresh | body | boolean | 否 | 是否强制刷新 | none -- | -- | -- | -- | -- | --

@wj2008
Copy link

wj2008 commented Jul 25, 2024

function refresh(){
res=curl -X POST -H "Authorization: $TOKEN" -H "Content-Type: application/json" -d '{"path": "'$(dirname $1)'", "refresh": true}' -s $ALIST_URL/api/fs/list
names=$(echo $res | jq -r '.message')
echo -e "refresh $(dirname $1) => $names"
}

@Super-Passerby
Copy link
Author

多谢,试了下的确可行,"refresh": True 就可以了

Copy link

stale bot commented Sep 7, 2024

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 stale bot added the stale No activity for more than 30 days label Sep 7, 2024
Copy link

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale No activity for more than 30 days
Projects
None yet
Development

No branches or pull requests

3 participants