Create the stream only if the file directory exists