[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2020-10-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1d3469988e2c1f53ca84ffdc979d548c04ba3906 by Serhiy Storchaka in branch 'master': bpo-38144: Re-add accidentally removed audition for glob. (GH-22805) https://github.com/python/cpython/commit/1d3469988e2c1f53ca84ffdc979d548c04ba3906 -

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2020-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for catching this. It was an error introduced by merge. -- ___ Python tracker ___ ___

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2020-10-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +21762 pull_request: https://github.com/python/cpython/pull/22805 ___ Python tracker ___

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2020-10-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: I'm digging around in the sys.audit() feature. Did the sys.audit("glob.glob", ...) call disappear in commit 8a64ceaf9856e7570cad6f5d628cce789834e019, or is something clever going on that I missed? -- nosy: +akuchling

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2020-06-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8a64ceaf9856e7570cad6f5d628cce789834e019 by Serhiy Storchaka in branch 'master': bpo-38144: Add the root_dir and dir_fd parameters in glob.glob(). (GH-16075) https://github.com/python/cpython/commit/8a64ceaf9856e7570cad6f5d628cce789834e019 -

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2020-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After adding this feature to iglob I am going to add it to other functions which work recursively with a directory tree. The only question: should we add two parameters root_dir and dir_fd or combine them in a single rood_dir (which can be either path or f

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2019-09-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15696 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16075 ___ Python tracker ___

[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2019-09-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The pattern for the glob() function can be relative and absolute. If it is relative, paths are searched from the current directory. If you want to search them in other directory, you need either change the current directory (which affects other parts of