Пример #1
0
Stats.prototype.isRegularFile = function() {

   	if(this.isPathExists != null) {
		var isRegularFile = path.extName(path.baseName(this.isPathExists));
		if(isRegularFile) {
			return true;
		}
	}
	return false;
}
Пример #2
0
Stats.prototype.isDirectory = function() {
	if(this.isPathExists) {
		var isDir = path.extName(path.baseName(this.isPathExists));
		if(!isDir) {
			return true;
		}
	}
	//if no file/folder exists return null
	return false;
}