[This is preliminary documentation and is subject to change.]

Get the File objects associated with the passed-in FileSpec list.

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)

Syntax

C#
public IList<File> GetFiles(
	Options options,
	params FileSpec[] filespecs
)
Visual Basic
Public Function GetFiles ( _
	options As Options, _
	ParamArray filespecs As FileSpec() _
) As IList(Of File)
Visual C++
public:
IList<File^>^ GetFiles(
	Options^ options, 
	... array<FileSpec^>^ filespecs
)

Parameters

options
Type: Perforce.P4..::..Options
filespecs
Type: array<Perforce.P4..::..FileSpec>[]()[][]

Return Value

Remarks


p4 help files

files -- List files in the depot

p4 files [ -a ] [ -A ] [ -m max ] file[revRange] ...

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'.

The -a flag displays all revisions within the specific range, rather
than just the highest revision in the range.

The -A flag displays files in archive depots.

The -m flag limits files to the first 'max' number of files.

See Also