Skip to content

Commit

Permalink
fileExists: allow symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Dec 7, 2012
1 parent 4b55786 commit 3f44167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/helpers.js
Expand Up @@ -108,7 +108,7 @@ module.exports = function(grunt) {
grunt.registerHelper('fileExists', function (filePath) {
try {
var stat = fs.lstatSync(filePath);
if (stat.isFile())
if (stat.isFile() || stat.isSymbolicLink())
return true;
} catch (e) {};
return false;
Expand Down

0 comments on commit 3f44167

Please sign in to comment.