CloudTask.ListNodeFiles(Nullable<Boolean>, DetailLevel, IEnumerable<BatchClientBehavior>) Method

Definition

Enumerates the files in the CloudTask's directory on its compute node.

public Microsoft.Azure.Batch.IPagedEnumerable<Microsoft.Azure.Batch.NodeFile> ListNodeFiles (Nullable<bool> recursive = null, Microsoft.Azure.Batch.DetailLevel detailLevel = null, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = null);
member this.ListNodeFiles : Nullable<bool> * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.IPagedEnumerable<Microsoft.Azure.Batch.NodeFile>

Parameters

recursive
Nullable<Boolean>

If true, performs a recursive list of all files of the task. If false, returns only the files in the root task directory.

detailLevel
DetailLevel

A DetailLevel used for filtering the list and for controlling which properties are retrieved from the service.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors and detailLevel.

Returns

An IPagedEnumerable<T> that can be used to enumerate files asynchronously or synchronously.

Remarks

This method returns immediately; the file data is retrieved from the Batch service only when the collection is enumerated.

        Retrieval is non-atomic; file data is retrieved in pages during enumeration of the collection.

Applies to