FileSystemOperationsExtensions.SetTimes Method (IFileSystemOperations, String, String, Int64, Int64)

 

Sets the access or modification time on a file or folder.

Namespace:   Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly:  Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)

Syntax

public static AzureOperationResponse SetTimes(
    this IFileSystemOperations operations,
    string sourcePath,
    string accountName,
    long modificationTime,
    long accessTime
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ SetTimes(
    IFileSystemOperations^ operations,
    String^ sourcePath,
    String^ accountName,
    long long modificationTime,
    long long accessTime
)
static member SetTimes : 
        operations:IFileSystemOperations *
        sourcePath:string *
        accountName:string *
        modificationTime:int64 *
        accessTime:int64 -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function SetTimes (
    operations As IFileSystemOperations,
    sourcePath As String,
    accountName As String,
    modificationTime As Long,
    accessTime As Long
) As AzureOperationResponse

Parameters

  • sourcePath
    Type: System.String

    Required. The path to the directory or file to set permissions on.

  • accountName
    Type: System.String

    Required. The name of the account to use

  • modificationTime
    Type: System.Int64

    Required. The modification time of a file/directory. If -1 remains unchanged

  • accessTime
    Type: System.Int64

    Required. The access time of a file/directory. If -1 remains unchanged

Return Value

Type: Microsoft.Azure.AzureOperationResponse

A standard service response including an HTTP status code and request ID.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top