def filetype_file(self): """ Return the filetype using the fine free file library. """ if self._filetype_file is None: self._filetype_file = '' if self.is_file is True: self._filetype_file = magic2.file_type(self.location) return self._filetype_file
def filetype_file(self): """ Return the filetype using the fine free file library. """ if self._filetype_file is None: self._filetype_file = "" if self.is_file is True: self._filetype_file = magic2.file_type(self.location) return self._filetype_file