From 9977f4efab86808e827f4cd78ff83ea1f7b18712 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 29 May 2013 22:50:46 -0700 Subject: [PATCH] Use grunt API for is directory --- Gruntfile.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 419696bd0..a25b7f6b7 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -10,7 +10,7 @@ INSTALL_DIR = path.join('/Applications', APP_NAME) module.exports = (grunt) -> cp = (source, destination) -> - if fs.statSync(source).isDirectory() + if grunt.file.isDir(source) grunt.file.recurse source, (sourcePath, rootDirectory, subDirectory='', filename) -> destinationPath = path.join(destination, subDirectory, filename) grunt.file.copy(sourcePath, destinationPath)