Package org.jboss.fresh.vfs

Examples of org.jboss.fresh.vfs.VFSException


    FileName adjusted = root.absolutize(name.toString());
    File thefile = new File(fsroot, adjusted.toString());

   
    if(!thefile.exists())
      throw new VFSException("File does not exist: " + name);
   
    if(!thefile.delete())
      throw new VFSException("File could no be deleted: " + name);

  }
View Full Code Here


  public void rename(FileName oldPath, FileName newPath) throws Exception {
    FileName adjusted = root.absolutize(oldPath.toString());
    File thefile = new File(fsroot, adjusted.toString());

    if(!thefile.exists())
      throw new VFSException("File does not exist: " + oldPath);

    FileName adjNu = root.absolutize(newPath.toString());
    File newFile = new File(fsroot, adjNu.toString());

    thefile.renameTo(newFile);
View Full Code Here

TOP

Related Classes of org.jboss.fresh.vfs.VFSException

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.