This function should be used when persistent storage is needed and the file does not already exist. - Only call this function if the target directory exists. Check first using the `directory_check` ...