add doc for path.normjoin

This commit is contained in:
Prodesire 2018-04-11 21:26:11 +08:00
parent 4fc769aea5
commit ddf87a6f05
1 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,15 @@ Utils for handling path.
False
.. py:function:: pydu.path.normjoin(path)
Join one or more path components intelligently and normalize it.
>>> from pydu.path import normjoin
>>> normjoin('/a', '../b')
'/b'
.. py:function:: pydu.path.filename(path)
Return the filename without extension.