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

Method list

magic/compat.py:212–220  ·  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

210 return _check(self._magic_t, Magic.__tobytes(dbs))
211
212 def list(self, dbs):
213 """
214 Check the validity of entries in the colon separated list of
215 database files passed as argument or the default database file
216 if no argument.
217
218 Returns 0 on success and -1 on failure.
219 """
220 return _list(self._magic_t, Magic.__tobytes(dbs))
221
222 def errno(self):
223 """

Callers

nothing calls this directly

Calls 1

__tobytesMethod · 0.80

Tested by

no test coverage detected