Package fuse.compat

Examples of fuse.compat.FuseDirEnt


      int i = 0;
      for (Iterator iter = children.iterator(); iter.hasNext(); i++)
      {
         Node childNode = (Node)iter.next();
         ZipEntry zipEntry = (ZipEntry)childNode.getValue();
         FuseDirEnt dirEntry = new FuseDirEnt();
         dirEntries[i] = dirEntry;
         dirEntry.name = childNode.getName();
         dirEntry.mode = zipEntry.isDirectory()? FuseFtype.TYPE_DIR : FuseFtype.TYPE_FILE;
      }
View Full Code Here


      {
         Node child = children[i];
         FuseStat stat = (child instanceof MountpointNode)
            ? ((MountpointNode) child).getFilesystem().getattr("/")
            : child.getStat();
         FuseDirEnt dirEntry = new FuseDirEnt();
         dirEntry.name = child.getName();
         dirEntry.mode = stat.mode;
         dirEntries[i] = dirEntry;
      }
View Full Code Here

TOP

Related Classes of fuse.compat.FuseDirEnt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.