[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-05 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-04 Thread Hadi Alqattan
Hadi Alqattan added the comment: You're right, I'm sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-04 Thread Hadi Alqattan
Change by Hadi Alqattan : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-04 Thread Eric V. Smith
Eric V. Smith added the comment: Isn't this just: (project_path / "main.py").exists() ? I don't think .has would be any more efficient. -- nosy: +eric.smith ___ Python tracker __

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-04 Thread Hadi Alqattan
New submission from Hadi Alqattan : Adding a new method to `pathlib.Path` class, `has` method is a method that can determine if the `Path` object has a specific file/dir or not. Assume that we have a `Path` object for this `project/` directory: ``` project/ main.py __init__.py utils/ ```