Skip to content

Add --path flag to share-link download#261

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
share-link-download-path
Jun 22, 2026
Merged

Add --path flag to share-link download#261
AndreyVMarkelov merged 1 commit into
masterfrom
share-link-download-path

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add --path flag to share-link download to download a single file inside a folder shared link
  • Skips metadata call and goes directly to GetSharedLinkFile with path set
  • Supports stdout (-) and file targets
  • --path and --recursive are mutually exclusive
  • Reorganize README sharing section into logical groups

Depends on #260.

Test plan

  • --path downloads nested file to target directory
  • --path to stdout is byte-clean
  • Empty --path rejected
  • Root --path rejected
  • --path + --recursive mutually exclusive
  • Password passed through to download call
  • GetSharedLinkMetadata not called when --path is set
  • Flag registered on command
  • golangci-lint clean, all tests pass

@AndreyVMarkelov AndreyVMarkelov merged commit 622a304 into master Jun 22, 2026
7 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.

1 participant