If directory file does not exist, an empty one is now generated.