function checkIfDirectoryExists(filepath){
	try{
		return fs.statSync(filepath).isDirectory();
	}catch(err){
		return false;
	};
}
/**
 * checkIfDirectoryExists(filepath) -> Boolean
 * - filepath(String): a directory's path
 *
 * Returns a truthy value if directory exists or not
 **/
> Boolean
- filepath(String): a directory's path

Returns a truthy value if directory exists or not
> Boolean - filepath ( String ) : a directory ' s path Returns a truthy value if directory exists or not
function checkIfDirectoryExists(filepath){
	try{
		return fs.statSync(filepath).isDirectory();
	}catch(err){
		return false;
	};
}
function checkIfDirectoryExists ( filepath ) { try { return fs . statSync ( filepath ) . isDirectory ( ) ; } catch ( err ) { return false ; } ; }
checkIfDirectoryExists(filepath) -> Boolean
 - filepath(String): a directory's path
checkIfDirectoryExists ( filepath ) - > Boolean - filepath ( String ) : a directory ' s path