Permalink
Browse files

fixed wrong isDirectory() -> isDir() replacement

  • Loading branch information...
1 parent 0464d80 commit a253b1f85546b13bf4c9e82a4c3e51727d02eddd @scf2k scf2k committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/commands/create/level.js
@@ -43,7 +43,7 @@ module.exports = function() {
args.names.forEach(function(name) {
var dir = PATH.resolve(opts.outputDir, name);
- if (!opts.force && bemUtil.isDir(dir)) {
+ if (!opts.force && bemUtil.isDirectory(dir)) {
UTIL.error(['Skip "' + name + '": already exists "' + dir + '"',
'Add --force to force creation.'].join('\n'));
return;

0 comments on commit a253b1f

Please sign in to comment.