When expanding a file name, it's only necessary to ensure that its directory exists for a generated intermediate file