Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commented Apr 1, 2023

Add a follow_junctions argument to pathlib.Path.walk(). When set to false, directory junctions are treated as files.

Add an _fwalk() method to pathlib.Path, similar to os.fwalk() except in its treatment of symlinks.

(This method could be made public in future if desired).

Implement shutil.rmtree() using pathlib.Path.walk() or _fwalk().

Add a `follow_junctions` argument to `pathlib.Path.walk()`. When set to false, directory junctions are treated as files. Add an `fwalk()` method to `pathlib.Path`, analogous to `os.fwalk()`. Implement `shutil.rmtree()` using `pathlib.Path.walk()` and `fwalk()`.
@barneygale
Copy link
ContributorAuthor

Withdrawing this PR - it's out of date, and I'd like to keep the Path API stable until PathBase is made public (see #110109)

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@barneygale@arhadthedev@bedevere-bot