adls.rename: Rename a file/folder.

Description Usage Arguments Details Value References See Also

Description

Rename a file/folder.

Usage

1
2
adls.rename(azureActiveContext, azureDataLakeAccount, relativePath,
  destinationRelativePath, overwrite = FALSE, verbose = FALSE)

Arguments

azureActiveContext

A container used for caching variables used by AzureSMR, created by createAzureContext()

azureDataLakeAccount

Name of the Azure Data Lake account.

relativePath

Relative path of source file/folder.

destinationRelativePath

Relative path of destination file/folder.

overwrite

Whether to overwrite existing files with same name (default FALSE).

verbose

Print tracing information (default FALSE).

Details

Exceptions - FileNotFoundException, FileAlreadyExistsException, ParentNotDirectoryException, IOException

Value

TRUE if successful, FALSE otherwise

References

https://docs.microsoft.com/en-us/azure/data-lake-store/data-lake-store-data-operations-rest-api#rename-a-file

See Also

https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Rename_a_FileDirectory

https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Destination

Other Azure Data Lake Store functions: adls.append.core, adls.append.direct, adls.append, adls.concat, adls.create, adls.delete, adls.file.info, adls.fileinputstream.available, adls.fileinputstream.close, adls.fileinputstream.create, adls.fileinputstream.getpos, adls.fileinputstream.length, adls.fileinputstream.readfromservice, adls.fileinputstream.readfully, adls.fileinputstream.read, adls.fileinputstream.seek, adls.fileinputstream.skip, adls.fileoutputstream.close, adls.fileoutputstream.create, adls.fileoutputstream.flush, adls.fileoutputstream.write, adls.ls, adls.mkdir, adls.read.core, adls.read.direct, adls.read, createAdlExponentialBackoffRetryPolicy, createAdlNonIdempotentRetryPolicy, createAdlRetryPolicy, shouldRetry.adlExponentialBackoffRetryPolicy, shouldRetry.adlNonIdempotentRetryPolicy, shouldRetry


Microsoft/AzureSMR documentation built on July 7, 2019, 11:25 p.m.