The removeTree documentation says, "If the root path is a symlink, then it will be treated as if it were a regular directory." but the current implementation fails with an inappropriate type (Not a directory) exception when the root path is a symlink on non-Windows systems.