Struct p4_cmd::dirs::DirsCommand[][src]

pub struct DirsCommand<'p, 'f, 's> { /* fields omitted */ }

List depot subdirectories

List directories that match the specified file pattern (dir). This command does not support the recursive wildcard (...). Use the * wildcard instead.

Perforce does not track directories individually. A path is treated as a directory if there are any undeleted files with that path as a prefix.

By default, all directories containing files are listed. If the dir argument includes a revision range, only directories containing files in the range are listed. For details about specifying file revisions, see 'p4 help revisions'.

Examples

let p4 = p4_cmd::P4::new();
let dirs = p4.dirs("//depot/dir/*").run().unwrap();
for dir in dirs {
    println!("{:?}", dir);
}

Methods

impl<'p, 'f, 's> DirsCommand<'p, 'f, 's>
[src]

The -C flag lists only directories that fall within the current client view.

The -S flag limits output to depot directories mapped in a stream's client view.

The -D flag includes directories containing only deleted files.

The -H flag lists directories containing files synced to the current client workspace.

The -i flag is used to ignore the case of the file pattern when listing directories in a case sensitive server. This flag is not compatible with the -C option.

Run the dirs command.

Trait Implementations

impl<'p, 'f, 's> Debug for DirsCommand<'p, 'f, 's>
[src]

Formats the value using the given formatter. Read more

impl<'p, 'f, 's> Clone for DirsCommand<'p, 'f, 's>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'p, 'f, 's> Send for DirsCommand<'p, 'f, 's>

impl<'p, 'f, 's> Sync for DirsCommand<'p, 'f, 's>