GetFilename
get_filename(file_path)
Expand source code
get_filename(file_path):"""Description-----------Method to get name of the file from path.Args----file_path: path of the file.Returns-------string: name of the fileUsages------file_name = get_filename(file_path)"""return os.path.basename(file_path)
Description
Method to get name of the file from path.
Arguments
file_path: path of the file.
Returns
string: name of the file
Usages
file_name = get_filename(file_path)