.bvfs_lsdirs
List directories using BVFS.
Synopsis
.bvfs_lsdirs [jobid=<jobid>[,...]] [path=<path>] [pathid=<pathid>]
[limit=<limit>] [offset=<offset>] [pattern=<pattern>]
[filename=<filename>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Lists the subdirectories of a directory in the state of a job chain, as a restore file browser needs them. The BVFS cache must have been filled with .bvfs_update first. The directory is given by path= (with a trailing slash, / for the root) or by pathid= from an earlier output; limit= (default 2000) and offset= page through the result.
Each line has five tab separated columns: PathId, FileId, JobId, LStat and name. The first two lines are . and ..; directories without their own catalog record have FileId and JobId 0. A JobId the console may not see is refused.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
jobid= | string | list | Job IDs. | ||
path= | string | Directory. | |||
pathid= | integer | Path ID. | |||
limit= | integer | Most rows. | |||
offset= | integer | Rows to skip. | |||
pattern= | string | Name filter (regular expression). | |||
filename= | string | File name. |
Examples
The top level directories of a job chain:
.bvfs_lsdirs jobid=600,615,616 path=/
The first 100 subdirectories of a known path:
.bvfs_lsdirs jobid=600,615,616 pathid=7 limit=100