Added isDir() & dir() implementation