Check path for `hassyspath` and use `shutil.rmdir` if True by geoffjukes · Pull Request #429 · PyFilesystem/pyfilesystem2

I think this is a good optimization, but we just need a few tests to make sure it is consistent with the current FS behaviour.

By the way, WrapReadOnly should be updated so that it makes the removetree method readonly, since this implementation does not use remove or removedir and could result in files being deleted even on a wrapped filesystem.