Pathpath.basename()Path operation: basename.path.basename() Path operation: basename. Syntax path.basename(...) Example path.basename(...)