(self, path)
return magic.Magic(mime=True).from_file(path.encode('utf-8'))
Attempt to read the file's mimetype
Attempt to read the file's mimetype
Attempt to read the file s mimetype
def _mimetype(self, path):
        """
        Attempt to read the file's mimetype
        """
        return magic.Magic(mime=True).from_file(path.encode('utf-8'))
def _mimetype ( self , path ) : return magic . Magic ( mime = True ) . from_file ( path . encode ( 'utf-8' ) )