Path to mount point of device.
Base mime directories where treemagic files are usually placed.
MIME type name or null if could not detect.
auto mimePaths = ["test/mime"]; assert(treeMimeType("test/media/photos", mimePaths) == "x-content/image-dcf"); assert(treeMimeType("test/media/installer", mimePaths) == "x-content/unix-software"); assert(treeMimeType("test", mimePaths) == null);
mime.paths.mimePaths
Detect MIME type of mounted device using treemagic files.