Do not try to get permissions etc from a file which couldn't be written