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]
impl<'p, 'f, 's> DirsCommand<'p, 'f, 's>
pub fn new(connection: &'p P4, dir: &'f str) -> Self
[src]
pub fn new(connection: &'p P4, dir: &'f str) -> Self
pub fn dir(self, dir: &'f str) -> Self
[src]
pub fn dir(self, dir: &'f str) -> Self
pub fn client_only(self, client_only: bool) -> Self
[src]
pub fn client_only(self, client_only: bool) -> Self
The -C flag lists only directories that fall within the current client view.
pub fn set_stream(self, stream: &'s str) -> Self
[src]
pub fn set_stream(self, stream: &'s str) -> Self
The -S flag limits output to depot directories mapped in a stream's client view.
pub fn include_deleted(self, include_deleted: bool) -> Self
[src]
pub fn include_deleted(self, include_deleted: bool) -> Self
The -D flag includes directories containing only deleted files.
pub fn include_synced(self, include_synced: bool) -> Self
[src]
pub fn include_synced(self, include_synced: bool) -> Self
The -H flag lists directories containing files synced to the current client workspace.
pub fn ignore_case(self, ignore_case: bool) -> Self
[src]
pub fn ignore_case(self, ignore_case: bool) -> Self
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.
pub fn run(self) -> Result<Dirs, P4Error>
[src]
pub fn run(self) -> Result<Dirs, P4Error>
Run the dirs
command.
Trait Implementations
impl<'p, 'f, 's> Debug for DirsCommand<'p, 'f, 's>
[src]
impl<'p, 'f, 's> Debug for DirsCommand<'p, 'f, 's>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'p, 'f, 's> Clone for DirsCommand<'p, 'f, 's>
[src]
impl<'p, 'f, 's> Clone for DirsCommand<'p, 'f, 's>
fn clone(&self) -> DirsCommand<'p, 'f, 's>
[src]
fn clone(&self) -> DirsCommand<'p, 'f, 's>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'p, 'f, 's> Send for DirsCommand<'p, 'f, 's>
impl<'p, 'f, 's> Send for DirsCommand<'p, 'f, 's>
impl<'p, 'f, 's> Sync for DirsCommand<'p, 'f, 's>
impl<'p, 'f, 's> Sync for DirsCommand<'p, 'f, 's>