Pachctl list file

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 foo@master

# list files under directory "dir" on branch "master" in repo "foo"
$ pachctl list file foo@master:dir

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

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

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

# list all versions of top-level files on branch "master" in repo "foo"
$ pachctl list file foo@master --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