It might be better here to do: `if (!grunt.file.exists(destPath)) { grunt.file.mkdir(destPath); }` That way it will do a `mkdir -p` and avoid failing when the `dest` contains an uncreated sub folder.