Esempio n. 1
0
 def splitext(self):
     return splitext(posixpath.basename(self.path.rstrip('/')))
Esempio n. 2
0
def is_archive_file(name):
    """Return True if `name` is a considered as an archive file."""
    ext = splitext(name)[1].lower()
    if ext in ARCHIVE_EXTENSIONS:
        return True
    return False