Skip to content

Commit

Permalink
add doc for path.fileext
Browse files Browse the repository at this point in the history
  • Loading branch information
Prodesire committed Apr 15, 2018
1 parent dc60710 commit bc6e79e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/path.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ Utils for handling path.
>>> from pydu.path import filename
>>> filename('/foo/bar.ext')
'bar'


.. py:function:: pydu.path.fileext(path)
Return the file extension.
If file has not extension, return empty string.

>>> from pydu.path import fileext
>>> filename('/foo/bar.ext')
'.ext'

0 comments on commit bc6e79e

Please sign in to comment.