Package org.maqetta.server

Examples of org.maqetta.server.VFile


          IVResource parent = this.workspace;
          for (int i = me.matchingFirstSegments(a); i < segments.length; i++) {
              int segsToEnd = segments.length - i - 1;
              String s = a.removeLastSegments(segsToEnd).toOSString();
              IStorage f = this.userDirectory.newInstance(s);
              parent = new VFile(f, parent, segments[i]);
          }
         
          if(parent==this.workspace)
              parent = new VFile(this.userDirectory, this.workspace);
         
          return parent;

  }
View Full Code Here


      path = path.replace('/', File.separatorChar);
      VFile linkFile = new VFile(this.userDirectory.newInstance(path));
      return linkFile;
    }
    */
    IVResource directory = new VFile(this.userDirectory, this.workspace);
    /* make sure the new resoruce is within the user directory */
   
    IVResource userFile = directory.create(path);

    return userFile;
  }
View Full Code Here

TOP

Related Classes of org.maqetta.server.VFile

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.