Do not forget to create the directory if it doesn't exist