New submission from amjad ben hedhili <[email protected]>: It will be handy if there was an os or os.path function that returns the path to the nth directory in a given path
for example: given path = "C:\Users\User\AppData\Local\Programs\Python\Python36\Lib\asyncio\__init__.py" os.path.nthpath(path, 2) returns "C:\Users\User\AppData\Local\Programs\Python\Python36\Lib" ---------- messages: 314094 nosy: amjad ben hedhili priority: normal severity: normal status: open title: get the nth folder type: enhancement _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue33102> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
