Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-89727: add os.walkdir and os.fwalkdir#103234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
jonburdo wants to merge4 commits intopython:mainfromjonburdo:walkdir

Conversation

@jonburdo
Copy link
Contributor

@jonburdojonburdo commentedApr 4, 2023
edited
Loading

Addos.walkdir andos.fwalkdir, similar toos.walk andos.fwalk except they returnos.DirEntry objects instead of string paths. They also handle symlinks to directories by putting them innondirs rather thandirs iffollow_links=False - likePath.walk rather thanos.walk.

TODO:

  • also returnos.DirEntry for the first root directory (thetop passed in)
  • addfollow_junctions=True kwarg
  • support dir editing withgenerator.send

possible additional steps based on#89727 (comment) :

  • move functions toos.path
  • makeon_error work more similarly toshutil.rmtree'sonerror

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jonburdo@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp