CloudFileDirectory Class

  • java.lang.Object
    • ListFileItem
      • com.microsoft.azure.storage.file.CloudFileDirectory

public class CloudFileDirectory implements ListFileItem

Represents a virtual directory of files.

Directories, which are encapsulated as CloudFileDirectory objects, hold files and can also contain sub-directories.

Constructor Summary

Constructor Description
CloudFileDirectory(final StorageUri directoryAbsoluteUri)

Creates an instance of the class using an absolute URI to the directory.

CloudFileDirectory(final StorageUri directoryAbsoluteUri, final StorageCredentials credentials)

Creates an instance of the class using an absolute URI to the directory and credentials.

CloudFileDirectory(final StorageUri uri, final String directoryName, final CloudFileShare share)

Creates an instance of the class using the specified address, share, and client.

CloudFileDirectory(final URI directoryAbsoluteUri)

Creates an instance of the class using an absolute URI to the directory.

CloudFileDirectory(final URI directoryAbsoluteUri, final StorageCredentials credentials)

Creates an instance of the class using an absolute URI to the directory and credentials.

Method Summary

Modifier and Type Method and Description
void assertValidFilePermissionOrKey()

Verifies that the directory's filePermission and properties.filePermissionKey are both not set.

ResultSegment<Integer> closeAllHandlesSegmented()

Close all SMB handles on this file.

ResultSegment<Integer> closeAllHandlesSegmented(final ResultContinuation continuationToken, boolean recursive, FileRequestOptions options, OperationContext opContext)

Close all SMB handles on this file.

ResultSegment<Integer> closeHandleSegmented(String handleID)

Close all SMB handles on this file.

ResultSegment<Integer> closeHandleSegmented(String handleID, ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Close all SMB handles on this file.

void create()

Creates the directory.

void create(FileRequestOptions options, OperationContext opContext)

Creates the directory using the specified options and operation context.

boolean createIfNotExists()

Creates the directory if it does not exist.

boolean createIfNotExists(FileRequestOptions options, OperationContext opContext)

Creates the directory if it does not exist, using the specified request options and operation context.

void delete()

Deletes the directory.

void delete(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Deletes the directory using the specified request options and operation context.

boolean deleteIfExists()

Deletes the directory if it exists.

boolean deleteIfExists(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Deletes the directory if it exists using the specified request options and operation context.

void downloadAttributes()

Downloads the directory's properties.

void downloadAttributes(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Downloads the directory's properties using the specified request options and operation context.

boolean exists()

Returns a value that indicates whether the directory exists.

boolean exists(final AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Returns a value that indicates whether the directory exists, using the specified request options and operation context.

CloudFileDirectory getDirectoryReference(final String itemName)

Returns a reference to a CloudFileDirectory object that represents a directory in this directory.

CloudFile getFileReference(final String fileName)

Returns a reference to a CloudFile object that represents a file in this directory.

HashMap<String, String> getMetadata()

Returns the metadata for the directory. This value is initialized with the metadata from the directory by a call to downloadAttributes(), and is set on the directory with a call to uploadMetadata().

String getName()

Returns the name of this directory.

CloudFileDirectory getParent()

Returns the CloudFileDirectory parent directory associated with this directory.

FileDirectoryProperties getProperties()

Returns the FileDirectoryProperties object that holds the directory's system properties.

CloudFileClient getServiceClient()

Returns the File service client associated with this directory.

CloudFileShare getShare()

Returns the share for this directory.

final StorageUri getStorageUri()

Returns the list of URIs for all locations.

URI getUri()

Returns the URI for this directory.

Iterable<ListFileItem> listFilesAndDirectories()

Returns an enumerable collection of file and directory items for the directory.

Iterable<ListFileItem> listFilesAndDirectories(FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

Iterable<ListFileItem> listFilesAndDirectories(String prefix, FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

ResultSegment<ListFileItem> listFilesAndDirectoriesSegmented()

Returns a result segment of an enumerable collection of files and directories for this File service client.

ResultSegment<ListFileItem> listFilesAndDirectoriesSegmented(final Integer maxResults, final ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Returns a result segment of an enumerable collection of files and directories for this directory, using the specified listing details options, request options, and operation context.

ResultSegment<ListFileItem> listFilesAndDirectoriesSegmented(final String prefix, final Integer maxResults, final ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Returns a result segment of an enumerable collection of files and directories for this directory, using the specified listing details options, request options, and operation context.

Iterable<FileHandle> listHandles()

Gets the SMB handles open on this file.

Iterable<FileHandle> listHandles(boolean recursive, FileRequestOptions options, OperationContext opContext)

Gets the SMB handles open on this file.

ResultSegment<FileHandle> listHandlesSegmented()

Gets the SMB handles open on this file.

ResultSegment<FileHandle> listHandlesSegmented(final Integer maxResults, final boolean recursive, final ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Gets the SMB handles open on this file.

void setFilePermission(String filePermission)

Sets the directory's file permission

void setMetadata(HashMap<String, String> metadata)

Sets the metadata collection of name-value pairs to be set on the directory with an uploadMetadata() call. This collection will overwrite any existing directory metadata. If this is set to an empty collection, the directory metadata will be cleared on an uploadMetadata() call.

final void setProperties(final FileDirectoryProperties properties)

Sets the properties for the directory.

final void setShare(final CloudFileShare share)

Sets the share for the directory.

void setStorageUri(final StorageUri storageUri)

Sets the list of URIs for all locations.

void uploadMetadata()

Uploads the directory's metadata.

void uploadMetadata(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Uploads the directory's metadata using the specified request options and operation context.

final void uploadProperties()

Uploads the directory's properties to the storage service.

Use downloadAttributes() to retrieve the latest values for the directory's properties and metadata from the Microsoft Azure storage service.

final void uploadProperties(final AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Uploads the directory's properties using the access condition, request options, and operation context.

Use downloadAttributes() to retrieve the latest values for the directory's properties and metadata from the Microsoft Azure storage service.

Constructor Details

CloudFileDirectory

public CloudFileDirectory(final StorageUri directoryAbsoluteUri)

Creates an instance of the class using an absolute URI to the directory.

Parameters:

directoryAbsoluteUri - A StorageUri that represents the file directory's address.

Throws:

StorageException
URISyntaxException

CloudFileDirectory

public CloudFileDirectory(final StorageUri directoryAbsoluteUri, final StorageCredentials credentials)

Creates an instance of the class using an absolute URI to the directory and credentials.

Parameters:

directoryAbsoluteUri - A StorageUri that represents the file directory's address.
credentials - A StorageCredentials object used to authenticate access.

Throws:

StorageException
URISyntaxException

CloudFileDirectory

protected CloudFileDirectory(final StorageUri uri, final String directoryName, final CloudFileShare share)

Creates an instance of the class using the specified address, share, and client.

Parameters:

uri - A StorageUri that represents the file directory's address.
directoryName - A String that represents the name of the directory.
share - A CloudFileShare object that represents the associated file share.

CloudFileDirectory

public CloudFileDirectory(final URI directoryAbsoluteUri)

Creates an instance of the class using an absolute URI to the directory.

Parameters:

directoryAbsoluteUri - A URI that represents the file directory's address.

Throws:

StorageException
URISyntaxException

CloudFileDirectory

public CloudFileDirectory(final URI directoryAbsoluteUri, final StorageCredentials credentials)

Creates an instance of the class using an absolute URI to the directory and credentials.

Parameters:

directoryAbsoluteUri - A URI that represents the file directory's address.
credentials - A StorageCredentials object used to authenticate access.

Throws:

StorageException
URISyntaxException

Method Details

assertValidFilePermissionOrKey

protected void assertValidFilePermissionOrKey()

Verifies that the directory's filePermission and properties.filePermissionKey are both not set.

closeAllHandlesSegmented

public ResultSegment closeAllHandlesSegmented()

Close all SMB handles on this file.

Returns:

A ResultSegment<T> which has one element which is the number of handles closed and a continuation to follow in case the operation took too long to be completed atomically.

Throws:

StorageException

closeAllHandlesSegmented

public ResultSegment closeAllHandlesSegmented(final ResultContinuation continuationToken, boolean recursive, FileRequestOptions options, OperationContext opContext)

Close all SMB handles on this file.

Parameters:

continuationToken - A ResultContinuation object that represents a continuation token returned by a previous listing operation.
recursive - Specifies if operation should apply to the directory specified in the URI, its files, its subdirectories and their files.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object which represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

A ResultSegment<T> which has one element which is the number of handles closed and a continuation to follow in case the operation took too long to be completed atomically.

Throws:

StorageException

closeHandleSegmented

public ResultSegment closeHandleSegmented(String handleID)

Close all SMB handles on this file.

Parameters:

handleID - The handle to close.

Returns:

A ResultSegment<T> which has one element which is the number of handles closed and a continuation to follow in case the operation took too long to be completed atomically.

Throws:

StorageException

closeHandleSegmented

public ResultSegment closeHandleSegmented(String handleID, ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Close all SMB handles on this file.

Parameters:

handleID - The handle to close.
continuationToken - A ResultContinuation object that represents a continuation token returned by a previous listing operation.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object which represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

A ResultSegment<T> which has one element which is the number of handles closed and a continuation to follow in case the operation took too long to be completed atomically.

Throws:

StorageException

create

public void create()

Creates the directory.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

create

public void create(FileRequestOptions options, OperationContext opContext)

Creates the directory using the specified options and operation context.

Parameters:

options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

createIfNotExists

public boolean createIfNotExists()

Creates the directory if it does not exist.

Returns:

true if the directory did not already exist and was created; otherwise, false.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

createIfNotExists

public boolean createIfNotExists(FileRequestOptions options, OperationContext opContext)

Creates the directory if it does not exist, using the specified request options and operation context.

Parameters:

options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client (CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

true if the directory did not already exist and was created; otherwise, false.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

delete

public void delete()

Deletes the directory.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

delete

public void delete(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Deletes the directory using the specified request options and operation context.

Parameters:

accessCondition - An AccessCondition object that represents the access conditions for the directory.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

deleteIfExists

public boolean deleteIfExists()

Deletes the directory if it exists.

Returns:

true if the directory did not already exist and was created; otherwise, false.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

deleteIfExists

public boolean deleteIfExists(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Deletes the directory if it exists using the specified request options and operation context.

Parameters:

accessCondition - An AccessCondition object that represents the access conditions for the directory.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

true if the directory existed and was deleted; otherwise, false.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

downloadAttributes

public void downloadAttributes()

Downloads the directory's properties.

Throws:

StorageException - If a storage service error occurred.

downloadAttributes

public void downloadAttributes(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Downloads the directory's properties using the specified request options and operation context.

Parameters:

accessCondition - An AccessCondition object that represents the access conditions for the directory.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Throws:

StorageException - If a storage service error occurred.

exists

public boolean exists()

Returns a value that indicates whether the directory exists.

Returns:

true if the directory exists, otherwise false.

Throws:

StorageException - If a storage service error occurred.

exists

public boolean exists(final AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Returns a value that indicates whether the directory exists, using the specified request options and operation context.

Parameters:

accessCondition - An AccessCondition object that represents the access conditions for the share.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

true if the directory exists, otherwise false.

Throws:

StorageException - If a storage service error occurred.

getDirectoryReference

public CloudFileDirectory getDirectoryReference(final String itemName)

Returns a reference to a CloudFileDirectory object that represents a directory in this directory.

Parameters:

itemName - A String that represents the name of the directory.

Returns:

A CloudFileDirectory object that represents a reference to the specified directory.

Throws:

URISyntaxException - If the resource URI is invalid.
StorageException

getFileReference

public CloudFile getFileReference(final String fileName)

Returns a reference to a CloudFile object that represents a file in this directory.

Parameters:

fileName - A String that represents the name of the file.

Returns:

A CloudFile object that represents a reference to the specified file.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException - If the resource URI is invalid.

getMetadata

public HashMap getMetadata()

Returns the metadata for the directory. This value is initialized with the metadata from the directory by a call to downloadAttributes(), and is set on the directory with a call to uploadMetadata().

Returns:

A java.util.HashMap object that represents the metadata for the directory.

getName

public String getName()

Returns the name of this directory.

Returns:

An String that represents the name of the directory.

getParent

public CloudFileDirectory getParent()

Returns the CloudFileDirectory parent directory associated with this directory.

Overrides:

CloudFileDirectory.getParent()

Returns:

An CloudFileDirectory object that represents the parent directory associated with the directory.

Throws:

StorageException
URISyntaxException

getProperties

public FileDirectoryProperties getProperties()

Returns the FileDirectoryProperties object that holds the directory's system properties.

Returns:

A FileDirectoryProperties object that holds the system properties associated with the directory.

getServiceClient

public CloudFileClient getServiceClient()

Returns the File service client associated with this directory.

Returns:

An CloudFileClient object that represents the service client associated with the directory.

getShare

public CloudFileShare getShare()

Returns the share for this directory.

Overrides:

CloudFileDirectory.getShare()

Returns:

A CloudFileShare that represents the share for this directory.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException - If the resource URI is invalid.

getStorageUri

public final StorageUri getStorageUri()

Returns the list of URIs for all locations.

Overrides:

CloudFileDirectory.getStorageUri()

Returns:

A StorageUri that represents the list of URIs for all locations.

getUri

public URI getUri()

Returns the URI for this directory.

Overrides:

CloudFileDirectory.getUri()

Returns:

A java.net.URI object that represents the URI for this directory.

listFilesAndDirectories

public Iterable listFilesAndDirectories()

Returns an enumerable collection of file and directory items for the directory.

Returns:

An enumerable collection of ListFileItem objects that represent the file and directory items in this directory.

listFilesAndDirectories

public Iterable listFilesAndDirectories(FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

Parameters:

options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

An enumerable collection of ListFileItem objects that represent the file and directory items in this directory.

listFilesAndDirectories

public Iterable listFilesAndDirectories(String prefix, FileRequestOptions options, OperationContext opContext)

Returns an enumerable collection of file and directory items for the directory.

Parameters:

prefix - A string containing the file or directory name prefix.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

An enumerable collection of ListFileItem objects that represent the file and directory items in this directory.

listFilesAndDirectoriesSegmented

public ResultSegment listFilesAndDirectoriesSegmented()

Returns a result segment of an enumerable collection of files and directories for this File service client.

Returns:

A ResultSegment<T> object that contains a segment of the enumerable collection of ListFileItem objects that represent the files and directories.

Throws:

StorageException

listFilesAndDirectoriesSegmented

public ResultSegment listFilesAndDirectoriesSegmented(final Integer maxResults, final ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Returns a result segment of an enumerable collection of files and directories for this directory, using the specified listing details options, request options, and operation context.

Parameters:

maxResults - The maximum number of results to retrieve. If null or greater than 5000, the server will return up to 5,000 items. Must be at least 1.
continuationToken - A ResultContinuation object that represents a continuation token returned by a previous listing operation.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

A ResultSegment<T> object that contains a segment of the enumerable collection of ListFileItem objects that represent the files and directories in this directory.

Throws:

StorageException - If a storage service error occurred.

listFilesAndDirectoriesSegmented

public ResultSegment listFilesAndDirectoriesSegmented(final String prefix, final Integer maxResults, final ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Returns a result segment of an enumerable collection of files and directories for this directory, using the specified listing details options, request options, and operation context.

Parameters:

prefix - A string containing the file or directory name prefix.
maxResults - The maximum number of results to retrieve. If null or greater than 5000, the server will return up to 5,000 items. Must be at least 1.
continuationToken - A ResultContinuation object that represents a continuation token returned by a previous listing operation.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

A ResultSegment<T> object that contains a segment of the enumerable collection of ListFileItem objects that represent the files and directories in this directory.

Throws:

StorageException - If a storage service error occurred.

listHandles

public Iterable listHandles()

Gets the SMB handles open on this file.

Returns:

AnIterable 

</code> of the handles that will lazily request new segments. </p>

listHandles

public Iterable listHandles(boolean recursive, FileRequestOptions options, OperationContext opContext)

Gets the SMB handles open on this file.

Parameters:

recursive - Specifies if operation should apply to the directory specified in the URI, its files, its subdirectories and their files.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object which represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

AnIterable 

</code> of the handles that will lazily request new segments. </p>

listHandlesSegmented

public ResultSegment listHandlesSegmented()

Gets the SMB handles open on this file.

Returns:

A ResultSegment<T> object that contains a segment of the enumerable collection of ListFileItem objects that represent the files and directories.

Throws:

StorageException

listHandlesSegmented

public ResultSegment listHandlesSegmented(final Integer maxResults, final boolean recursive, final ResultContinuation continuationToken, FileRequestOptions options, OperationContext opContext)

Gets the SMB handles open on this file.

Parameters:

maxResults - The maximum number of results to retrieve. If null or greater than 5000, the server will return up to 5,000 items. Must be at least 1.
recursive - Specifies if operation should apply to the directory specified in the URI, its files, its subdirectories and their files.
continuationToken - A ResultContinuation object that represents a continuation token returned by a previous listing operation.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object which represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns:

A ResultSegment<T> object that contains a segment of the enumerable collection of ListFileItem objects that represent the files and directories.

Throws:

StorageException

setFilePermission

public void setFilePermission(String filePermission)

Sets the directory's file permission

Parameters:

filePermission - A String that represents the directory's file permission.

setMetadata

public void setMetadata(HashMap metadata)

Sets the metadata collection of name-value pairs to be set on the directory with an uploadMetadata() call. This collection will overwrite any existing directory metadata. If this is set to an empty collection, the directory metadata will be cleared on an uploadMetadata() call.

Parameters:

metadata - A java.util.HashMap object that represents the metadata being assigned to the directory.

setProperties

protected final void setProperties(final FileDirectoryProperties properties)

Sets the properties for the directory.

Parameters:

properties - A FileDirectoryProperties object that represents the properties being assigned to the directory.

setShare

protected final void setShare(final CloudFileShare share)

Sets the share for the directory.

Parameters:

share - A CloudFileShare object that represents the share being assigned to the directory.

setStorageUri

protected void setStorageUri(final StorageUri storageUri)

Sets the list of URIs for all locations.

Parameters:

storageUri - A StorageUri that represents the list of URIs for all locations.

uploadMetadata

public void uploadMetadata()

Uploads the directory's metadata.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

uploadMetadata

public void uploadMetadata(AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Uploads the directory's metadata using the specified request options and operation context.

Parameters:

accessCondition - An AccessCondition object that represents the access conditions for the directory.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

uploadProperties

public final void uploadProperties()

Uploads the directory's properties to the storage service.

Use downloadAttributes() to retrieve the latest values for the directory's properties and metadata from the Microsoft Azure storage service.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

uploadProperties

public final void uploadProperties(final AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext)

Uploads the directory's properties using the access condition, request options, and operation context.

Use downloadAttributes() to retrieve the latest values for the directory's properties and metadata from the Microsoft Azure storage service.

Parameters:

accessCondition - An AccessCondition object that represents the access conditions for the directory.
options - A FileRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudFileClient).
opContext - An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Throws:

StorageException - If a storage service error occurred.
URISyntaxException

Applies to