Skip to content

Support Azure Data Lake Storage Gen2 #161

@analog-cbarber

Description

@analog-cbarber

Not sure if this problem also affects regular Blob storage accounts, but I have a Azure storage account using Data Lake Gen2 storage, and the I observe the following issues:

  • All paths are considered to be files (is_file() is true if it exists) and not directories. is_dir() never returns True
  • iterdir() always returns paths. If the input is a file, it just returns itself if it exists.
  • rmdir() always throws a CloudPathNotADirectoryError
  • unlink() does appear to remove empty directories, but is expected to throw CloudPathIsADirectoryError
  • rmtree() throws a CloudPathNotADirectoryError
  • rename() (if it works) copies contents instead of doing an actual rename, which is supported in Gen2 (AzureBlobPath should implement rename #162)

There may be other issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions