on mozdevice this returns True even if you check against a file. I found the issue in this patch to be in `mkDirs`, I'll fix it there.