hadoop - get filename and extension of files in hdfs with Python -
is there equivalent of os module in python read filesystem (hadoop 2.6)?
in particular interested getting extension of file , base name (not including full path).
no need "an equivalent", os.path.basename same hdfs.
i.e.:
import os.path path print path.basename("/path/to/file.txt") # file.txt