When exporting as GLTF, the FileExporter does not write the texture files (probably buffer files too, not tested) on disk if the destination directory does not already exist.
This is probably due to std::ofstream not being able to open a file if the file's directory doesn't exist on disk.