[New-bugs-announce] [issue33102] get the nth folder
amjad ben hedhili
report at bugs.python.org
Mon Mar 19 09:25:56 EDT 2018
New submission from amjad ben hedhili <amjadbenhedhili at gmail.com>:
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 <report at bugs.python.org>
<https://bugs.python.org/issue33102>
_______________________________________
More information about the New-bugs-announce
mailing list