Message373281
Maxwell, in your case a more correct and obvious way is
Path('/tmp') in filepath.parents
although it may be not very efficient. Using the is_relative_to() method may be more efficient and obvious. |
|
Date |
User |
Action |
Args |
2020-07-08 06:57:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, pitrou, r.david.murray, akira, mdk, thejcannon, ju-sh, victorg, maxballenger |
2020-07-08 06:57:03 | serhiy.storchaka | set | messageid: <1594191423.97.0.0636093967177.issue21041@roundup.psfhosted.org> |
2020-07-08 06:57:03 | serhiy.storchaka | link | issue21041 messages |
2020-07-08 06:57:03 | serhiy.storchaka | create | |
|