Python Glob without the whole path – only the filename December 15, 2022 by Tarik Use os.path.basename(path) to get the filename.