src/Valkyrja/Filesystem/FlyFilesystem.php
public function mimetype(string $path): ? string
    {
        $mimetype = $this->flySystem->getMimetype($path);

        return false !== $mimetype ? $mimetype : null;
    }
public function mimetype(string $path): ? string
    {
        $mimetype = $this->flySystem->getMimetype($path);

        return false !== $mimetype ? $mimetype : null;
    }
Get a file's mime type.

@param string $path The path

@throws \League\Flysystem\FileNotFoundException

@return string|null The mime type or null on failure