Python mendapatkan nama file dari jalur
import os
print(os.path.basename(your_path))
Itchy Ibis
import os
print(os.path.basename(your_path))
filename = os.path.basename("path/to/file/sample.txt")