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

Stat does not work for directories on servers without MLST #26

Open
dehorsley opened this issue Sep 26, 2017 · 1 comment
Open

Stat does not work for directories on servers without MLST #26

dehorsley opened this issue Sep 26, 2017 · 1 comment

Comments

@dehorsley
Copy link

This is a documented bug, but I think it would be useful to have it fixed. This will enable Walk for these servers.

One work-around I see is to do a LIST on the parent directory and scan through the result for the target. Although, maybe someone has a better option?

I think it would also be nice if the library selected the right behaviour with the results of FEAT, rather than issuing MLST and handling the failure every time, see file_system.go#L170.

Thanks!

@muirmanders
Copy link
Contributor

Thanks for the report. Out of curiosity, why do you need Stat() when walking instead of just using ReadDir()?

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