Skip to content

lsf: document Google Drive shortcut IDs - #9649

Merged
ncw merged 2 commits into
rclone:masterfrom
giri256:docs/lsf-drive-shortcut-ids-7863
Jul 24, 2026
Merged

ncw merged 2 commits into
rclone:masterfrom
giri256:docs/lsf-drive-shortcut-ids-7863

Conversation

@giri256

@giri256 giri256 commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Documents the composite ID returned by rclone lsf --format i for Google Drive shortcuts:

  • The target object's ID is first.
  • The shortcut's ID is second.
  • The two IDs are separated by a tab inside the ID field.
  • --separator does not change that internal tab.
  • --drive-skip-shortcuts omits shortcut entries.

The wording is added to the command's source help so it appears in both rclone lsf --help and generated command documentation.

Verification

  • go test ./cmd/lsf -count=1
  • go vet ./cmd/lsf
  • golangci-lint run ./cmd/lsf/... with zero findings
  • git diff --check
  • Built and inspected rclone lsf --help to verify the explanation appears.

Fixes #7863

@giri256
giri256 requested a review from ncw as a code owner July 22, 2026 17:58

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks great - thank you.

A matching note in the Shortcuts section of docs/content/drive.md, would help users who come at this from the backend docs side. Happy to take that as a follow-up though.

@giri256

giri256 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Added the matching Drive backend documentation in 047b19bd9, under the Shortcuts section. It now explains the target-ID/tab/shortcut-ID layout and that --separator does not change the internal tab. go test ./cmd/lsf -count=1, go vet ./cmd/lsf, and git diff --check pass.

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you :-)

@ncw
ncw merged commit c99b2d1 into rclone:master Jul 24, 2026
8 of 9 checks passed
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.

Explain dual id behavior when lsf google drive

2 participants