mirror of https://github.com/flaggo/pydu.git
add doc for path.normjoin
This commit is contained in:
parent
4fc769aea5
commit
ddf87a6f05
|
@ -30,6 +30,15 @@ Utils for handling path.
|
||||||
False
|
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)
|
.. py:function:: pydu.path.filename(path)
|
||||||
|
|
||||||
Return the filename without extension.
|
Return the filename without extension.
|
||||||
|
|
Loading…
Reference in New Issue