Skip to content

feat: add drive +files-list for folder contents#67

Open
zfaustk wants to merge 1 commit intolarksuite:mainfrom
zfaustk:fix/drive-folder-files-list
Open

feat: add drive +files-list for folder contents#67
zfaustk wants to merge 1 commit intolarksuite:mainfrom
zfaustk:fix/drive-folder-files-list

Conversation

@zfaustk
Copy link
Copy Markdown

@zfaustk zfaustk commented Mar 29, 2026

Summary

This adds a dedicated drive +files-list shortcut for browsing the contents of a Drive folder without dropping down to schema/raw API calls.

What changed

  • add lark-cli drive +files-list
  • accept either a folder token or a folder URL
  • surface pagination and sorting flags (--page-token, --page-size, --order-by, --direction)
  • return friendly table output while preserving full JSON metadata via --format json
  • document the shortcut in both README variants

Why

Issue #51 points out that the CLI already has upload/comment/permission helpers in the Drive domain, but no direct way to inspect a folder's contents. This fills that user-facing gap with a read-only shortcut instead of requiring drive files list --params ....

Verification

CGO_ENABLED=0 go test ./shortcuts/drive
python3 /skills/larkopen/scripts/larkoapi.py drive files-list -h
python3 -m py_compile /skills/larkopen/scripts/larkoapi_drive_ops.py /skills/larkopen/scripts/larkoapi_cli.py

Fixes #51.

@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@windmonk
Copy link
Copy Markdown

windmonk commented Mar 30, 2026

wiki 中的内容也需要list功能

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 30, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@zfaustk zfaustk force-pushed the fix/drive-folder-files-list branch 2 times, most recently from 5e971a5 to b0e5655 Compare March 30, 2026 18:34
@zfaustk zfaustk force-pushed the fix/drive-folder-files-list branch from b0e5655 to 9ef16a4 Compare March 30, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

没有能列出云盘文件夹里面的文件的命令么

4 participants