Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories identified as files in walk() #55

Closed
dfigus opened this issue May 11, 2020 · 1 comment
Closed

Directories identified as files in walk() #55

dfigus opened this issue May 11, 2020 · 1 comment

Comments

@dfigus
Copy link
Contributor

dfigus commented May 11, 2020

I'm running adlfs==0.2.4 & fsspec==0.6.2 and observed the following behavior:

Given the folllowing folder structure in ADLS Gen1:

/folder/subfolder1/subfolder1_1
/folder/subfolder1/subfolder1_2
...

If I do a

_, directories, files = next(fs.walk('/folder'))

I get subfolder1 in files and not directories. I did a short debugging and it looks like that the official Microsoft AzureDLFileSystem.ls() returns "type" = "DIRECTORY", but in fsspec's AbstractFileSystem.walk() "type" = "directory" is expected. Therefore all folders are treated as files.

@hayesgb
Copy link
Collaborator

hayesgb commented May 19, 2020

Fixed on PR.

@hayesgb hayesgb closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants