MCPcopy Create free account
hub / github.com/ahupp/python-magic / check

Method check

magic/compat.py:202–210  ·  view source on GitHub ↗

Check the validity of entries in the colon separated list of database files passed as argument or the default database file if no argument. Returns 0 on success and -1 on failure.

(self, dbs)

Source from the content-addressed store, hash-verified

200 return _compile(self._magic_t, Magic.__tobytes(dbs))
201
202 def check(self, dbs):
203 """
204 Check the validity of entries in the colon separated list of
205 database files passed as argument or the default database file
206 if no argument.
207
208 Returns 0 on success and -1 on failure.
209 """
210 return _check(self._magic_t, Magic.__tobytes(dbs))
211
212 def list(self, dbs):
213 """

Callers

nothing calls this directly

Calls 1

__tobytesMethod · 0.80

Tested by

no test coverage detected