This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amjad ben hedhili
Recipients amjad ben hedhili
Date 2018-03-19.13:25:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521465956.78.0.467229070634.issue33102@psf.upfronthosting.co.za>
In-reply-to
Content
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"
History
Date User Action Args
2018-03-19 13:25:56amjad ben hedhilisetrecipients: + amjad ben hedhili
2018-03-19 13:25:56amjad ben hedhilisetmessageid: <1521465956.78.0.467229070634.issue33102@psf.upfronthosting.co.za>
2018-03-19 13:25:56amjad ben hedhililinkissue33102 messages
2018-03-19 13:25:56amjad ben hedhilicreate