Skip to content

Rename works only on file name #324

@oleksandr-yatsuk

Description

@oleksandr-yatsuk
fs = AzureDLFileSystem(token=auth_token store_name="mylake")

fs.rename(
   AzureDLPath("folder1/some_file.txt"),
   AzureDLPath("folder2/some_file.txt")
)

does not work, an exception raised
azure.datalake.store.exceptions.DatalakeRESTException: Operation failed: RENAME, folder1/some_file.txt

It works only in the case of renaming of the file name (not folders)

fs = AzureDLFileSystem(token=auth_token store_name="mylake")

fs.rename(
   AzureDLPath("folder1/some_file.txt"),
   AzureDLPath("folder1/some_file_renamed.txt")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions