Python mendapatkan nama file dari jalur
import os
print(os.path.basename(your_path))
Itchy Ibis
import os
print(os.path.basename(your_path))
>>> import os
>>> f = open('file.txt')
>>> os.path.realpath(f.name)