piranna / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

MemoryFS.removedir() removes not empty parent directories if recursive=True. #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make MemoryFS with the following files tree:
  /
  -dir
  --subdir
  --file.ext
2. memory_fs.removedir('/dir/subdir', recursive=True)

What is the expected output? What do you see instead?

I expected the following files tree:
  /
  -dir
  --file.ext

But I see the empty root dir.

What version of the product are you using? On what operating system?

Ubuntu 12.04
fs-trunk

Please provide any additional information below.

Citation from base.py:

#    :param recursive: if True, empty parent directories will be removed

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

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r825.

Original comment by gc...@loowis.durge.org on 26 Oct 2012 at 2:15