Documentation
¶
Overview ¶
Package list implements 'rclone archive list'
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "list [flags] <source>", Short: `List archive contents from source.`, Long: strings.ReplaceAll(` List the contents of an archive to the console, auto detecting the format. See [rclone archive create](/commands/rclone_archive_create/) for the archive formats supported. For example: ||| $ rclone archive list remote:archive.zip 6 file.txt 0 dir/ 4 dir/bye.txt ||| Or with |--long| flag for more info: ||| $ rclone archive list --long remote:archive.zip 6 2025-10-30 09:46:23.000000000 file.txt 0 2025-10-30 09:46:57.000000000 dir/ 4 2025-10-30 09:46:57.000000000 dir/bye.txt ||| Or with |--plain| flag which is useful for scripting: ||| $ rclone archive list --plain /path/to/archive.zip file.txt dir/ dir/bye.txt ||| Or with |--dirs-only|: ||| $ rclone archive list --plain --dirs-only /path/to/archive.zip dir/ ||| Or with |--files-only|: ||| $ rclone archive list --plain --files-only /path/to/archive.zip file.txt dir/bye.txt ||| Filters may also be used: ||| $ rclone archive list --long archive.zip --include "bye.*" 4 2025-10-30 09:46:57.000000000 dir/bye.txt ||| The [archive backend](/archive/) can also be used to list files. It can be used to read only mount archives also but it supports a different set of archive formats to the archive commands. `, "|", "`"), Annotations: map[string]string{ "versionIntroduced": "v1.72", }, RunE: func(command *cobra.Command, args []string) error { cmd.CheckArgs(1, 1, command, args) src, srcFile := cmd.NewFsFile(args[0]) cmd.Run(false, false, command, func() error { return ArchiveList(context.Background(), src, srcFile, listFile) }) return nil }, }
Command - list
Functions ¶
func ArchiveList ¶
ArchiveList -- print a list of the files in the archive
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.