New mehtod isDirectory as warpper method for is_dir

Change-Id: I408fb79ae42e2dd65586565d142a95ac8dadcca3