-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extending os.walk to support following symlinks #42306
Comments
this is a very simple extension to os.walk to optionally walk down |
Logged In: YES The docs to os.walk say: Nevertheless, we could offer this option with a caution message. |
I'm not sure if this is a good idea; although I am certain it would be useful at times. Dangerous! But if its documented, ... and there's our problem :) Patch applies cleanly to the HEAD, but needs documentation. |
Added docs and tests and committed in rev. 54407. |
The test suite patch (54482) broke the windows build. The assertion self.assertEqual(len(all), 4) fails because it finds 5 directories (link is a directory), then the rest of the When fixing the code, I recommend to move the tear-down code into the tearDown |
Here is a patch that fixes test_os.WalkTests on Windows. I also added a tearDown method to WalkTests and removed File Added: test_os.diff |
The patch is fine; please apply. |
Commited as revision 54689. |
Is there a separate bug for doc updates for this? |
Hi Trent, There is no separate issue yet. What is missing in |
Ziga, |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: