pub struct FilesCommand<'p, 'f> { /* private fields */ }
Expand description
List files in the depot.
List details about specified files: depot file name, revision, file, type, change action and changelist number of the current head revision. If client syntax is used to specify the file argument, the client view mapping is used to determine the corresponding depot files.
By default, the head revision is listed. If the file argument specifies a revision, then all files at that revision are listed. If the file argument specifies a revision range, the highest revision in the range is used for each file. For details about specifying revisions, see ‘p4 help revisions’.
§Examples
let p4 = p4_cmd::P4::new();
let files = p4.files("//depot/dir/*").run().unwrap();
for file in files {
println!("{:?}", file);
}
Implementations§
Source§impl<'p, 'f> FilesCommand<'p, 'f>
impl<'p, 'f> FilesCommand<'p, 'f>
pub fn new(connection: &'p P4, file: &'f str) -> Self
pub fn file(self, file: &'f str) -> Self
Sourcepub fn list_revisions(self, list_revisions: bool) -> Self
pub fn list_revisions(self, list_revisions: bool) -> Self
The -a flag displays all revisions within the specific range, rather than just the highest revision in the range.
Sourcepub fn syncable_only(self, syncable_only: bool) -> Self
pub fn syncable_only(self, syncable_only: bool) -> Self
The -e flag displays files with an action of anything other than deleted, purged or archived. Typically this revision is always available to sync or integrate from.
Sourcepub fn ignore_case(self, ignore_case: bool) -> Self
pub fn ignore_case(self, ignore_case: bool) -> Self
The -i flag is used to ignore the case of the file argument when listing files in a case sensitive server.
Trait Implementations§
Source§impl<'p, 'f> Clone for FilesCommand<'p, 'f>
impl<'p, 'f> Clone for FilesCommand<'p, 'f>
Source§fn clone(&self) -> FilesCommand<'p, 'f>
fn clone(&self) -> FilesCommand<'p, 'f>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more