Answers for "Extract filename from path in Python"

0

Extract filename from path in Python

filename = os.path.basename("path/to/file/sample.txt")
Posted by: Guest on August-31-2021

Code answers related to "Extract filename from path in Python"

Python Answers by Framework

Browse Popular Code Answers by Language