code: def _check_if_zipped(self, path):
          
  
          filename = get_file(path).split('.')
  
          if filename[-1] in ['bz', 'bz2', 'gz']:
              return True
  
          return False
docs: Checks if the filename shows a tar/zip file