Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 API for Ruby Documentation | 2025.2

# Class P4::DepotFile

## Description

Utility class providing easy access to the attributes of a file in a P4 Server depot. Each `P4::DepotFile` object contains summary information about the file, and a list of revisions (`P4::Revision` objects) of that file. Currently, only the `P4#run_filelog()` method returns an array of `P4::DepotFile` objects.

## Class Methods

None.

## Instance Methods

### df.depot_file -> aString

Returns the name of the depot file to which this object refers.

### df.each_revision { |rev| block } -> revArray

Iterates over each revision of the depot file.

### df.revisions -> aArray

Returns an array of revisions of the depot file.

Your search for returned results