PyFilesystem / pyfilesystem

Python filesystem abstraction layer
http://pyfilesystem.org/
BSD 3-Clause "New" or "Revised" License
288 stars 63 forks source link

Not correct result for FS.walk() on the not exists directory #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

>>> from fs.memoryfs import MemoryFS
>>> fs = MemoryFS()
>>> list(fs.walk('/dir'))

What is the expected output?
raise ResourceNotFoundError

What do you see instead?
[('/dir', [])]

What version of the product are you using?
0.4.0

Original issue reported on code.google.com by cyk...@gmail.com on 9 Oct 2012 at 10:42

GoogleCodeExporter commented 9 years ago
Thanks. Fixed in trunk.

Original comment by willmcgugan on 9 Oct 2012 at 10:54