Use mkdir with -p flag to avoid error when file exists