Seperated file and folder paths to prevent creating the file as a directory.