Remove directory tree without following symlinks

Random832 random832 at fastmail.com
Sat Apr 23 17:07:14 EDT 2016


On Sat, Apr 23, 2016, at 12:29, Nobody wrote:
> On Linux, an alternative is to use fchdir() rather than chdir(), which
> changes to a directory specified by an open file descriptor 

Of course, then there's also the risk of running out of open file
descriptors. High-quality implementations of rm will fork to deal with
this.



More information about the Python-list mailing list