close #6: isDirectory() method

 On branch master

	modified:   index.js
	modified:   test.js