X7ROOT File Manager
Current Path:
/usr/share/doc/python3-magic
usr
/
share
/
doc
/
python3-magic
/
📁
..
📄
README
(0 B)
📄
example.py
(207 B)
Editing: example.py
#! /usr/bin/python import magic ms = magic.open(magic.NONE) ms.load() tp = ms.file("/bin/ls") print (tp) f = open("/bin/ls", "rb") buf = f.read(4096) f.close() tp = ms.buffer(buf) print (tp) ms.close()
Upload File
Create Folder