Adding isDir() method on client