//throws FuseException public int getdir(String path, FuseDirFiller filler) { N n = lookup(path); if (n is D) { foreach (N child in ((D) n).files.Values) { int ftype = (child is D) ? FuseFtypeConstants.TYPE_DIR : ((child is F) ? FuseFtypeConstants.TYPE_FILE : ((child is L) ? FuseFtypeConstants.TYPE_SYMLINK : 0)); if (ftype > 0) filler.add( child.name, child.GetHashCode(), ftype | child.mode ); } return 0; } return Errno.ENOTDIR; }
//throws FuseException public int getdir(String path, FuseDirFiller filler) { foreach (FuseDirEnt entry in fs2.getdir(path)) filler.add(entry.name, entry.inode, entry.mode); return 0; }