Package org.apache.commons.vfs

Examples of org.apache.commons.vfs.FileObject.createFolder()


    if ( d.open() == Window.OK) {
      String newFolder = d.getValue();
     
      try {
        FileObject newFile = parent.resolveFile(newFolder);
        newFile.createFolder();
       
      } catch (FileSystemException e) {
        MessageBoxError( e.getMessage());
      }
    }
View Full Code Here


    }

    public void addToVirtualFilesystem(FileSystem fileSystem) throws FileSystemException {
        if (!isWebappDirectoryRelative()) {
            FileObject file = VfsWrapper.getManager().resolveFile(getSchema() + "://" + StringUtils.defaultString(getJunctionUrl()));
            file.createFolder(); //ensure it exists
            fileSystem.addJunction(getJunctionPoint(), file);
        } else {
            File parentFile = new File(Application.lookup().getBaseAppDirectory());
            String junctionUrl = getJunctionUrl();
View Full Code Here

                parentFile = parentFile.getParentFile();
            }

            FileObject file = VfsWrapper.getManager().resolveFile(getSchema() + "://" + parentFile +
                    (StringUtils.isEmpty(junctionUrl) ? "" : ("/" + junctionUrl)));
            file.createFolder(); //ensure it exists
            fileSystem.addJunction(getJunctionPoint(), file);

        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.