pachctl list file

Return the files in a directory.

Synopsis

Return the files in a directory.

pachctl list file <repo>@<branch-or-commit>[:<path/in/pfs>]

Examples


# list top-level files on branch "master" in repo "foo"
$ pachctl list file [email protected]

# list files under directory "dir" on branch "master" in repo "foo"
$ pachctl list file [email protected]:dir

# list top-level files in the parent commit of the current head of "master"
# in repo "foo"
$ pachctl list file [email protected]^

# list top-level files in the grandparent of the current head of "master"
# in repo "foo"
$ pachctl list file [email protected]^2

# list the last n versions of top-level files on branch "master" in repo "foo"
$ pachctl list file [email protected] --history n

# list all versions of top-level files on branch "master" in repo "foo"
$ pachctl list file [email protected] --history all

Options

      --full-timestamps   Return absolute timestamps (as opposed to the default, relative timestamps).
      --history string    Return revision history for files. (default "none")
      --raw               disable pretty printing, print raw json

Options inherited from parent commands

      --no-color   Turn off colors.
  -v, --verbose    Output verbose logs