Add isFile, isDir ops.