@Override
    public CloudFileDirectory getParent() throws URISyntaxException, StorageException {
        if (this.parent == null) {
            final String parentName = CloudFile.getParentNameFromURI(this.getStorageUri(), this.getShare());

            if (parentName != null) {
                StorageUri parentURI = PathUtility.appendPathToUri(this.getShare().getStorageUri(), parentName);
                this.parent = new CloudFileDirectory(parentURI, this.getServiceClient().getCredentials());
            }
        }
        return this.parent;
    }
@Override
    public CloudFileDirectory getParent() throws URISyntaxException, StorageException {
        if (this.parent == null) {
            final String parentName = CloudFile.getParentNameFromURI(this.getStorageUri(), this.getShare());

            if (parentName != null) {
                StorageUri parentURI = PathUtility.appendPathToUri(this.getShare().getStorageUri(), parentName);
                this.parent = new CloudFileDirectory(parentURI, this.getServiceClient().getCredentials());
            }
        }
        return this.parent;
    }
@ Override public CloudFileDirectory getParent ( ) throws URISyntaxException , StorageException { if ( this . parent == null ) { final String parentName = CloudFile . getParentNameFromURI ( this . getStorageUri ( ) , this . getShare ( ) ) ; if ( parentName != null ) { StorageUri parentURI = PathUtility . appendPathToUri ( this . getShare ( ) . getStorageUri ( ) , parentName ) ; this . parent = new CloudFileDirectory ( parentURI , this . getServiceClient ( ) . getCredentials ( ) ) ; } } return this . parent ; }
Returns the {@link CloudFileDirectory} parent directory associated with this directory.

@return An {@link CloudFileDirectory} object that represents the parent directory associated with the directory.
@throws StorageException
@throws URISyntaxException
Returns the { @link CloudFileDirectory } parent directory associated with this directory .