UNPKG

tarifa

Version:

Your friendly toolchain for mobile app development on top of Apache Cordova

17 lines (15 loc) 440 B
var untildify = require('untildify'), fs = require('fs'), path = require('path'); module.exports = function (/* args */) { try { var args = Array.prototype.slice.call(arguments, 0); return fs.statSync(path.resolve(untildify(path.join.apply(this, args)))).isDirectory(); } catch(err) { if(err.code === 'ENOENT') { return false; } else { throw err; } } };