Get Extension of File Path using Python December 29, 2020 Python 0 Comments 370 Views os.path.splitext function import os.path path = '/var/tmp/archived.tar.gz' extension = os.path.splitext(path)[1] print(extension)
Leave a Comment
Cancel reply