def __init__(self, path):
self.path = path
self.head = os.path.split(path)[0]
self.filename = os.path.split(path)[1]
self.filename_lower = self.filename.lower() # important for sorting
self.filetype = _get_file_type(self.filename)
def __init__(self, path):
self.path = path
self.head = os.path.split(path)[0]
self.filename = os.path.split(path)[1]
self.filename_lower = self.filename.lower() # important for sorting
self.filetype = _get_file_type(self.filename)