Examples of createDirectory()


Examples of org.apache.poi.poifs.filesystem.DirectoryEntry.createDirectory()

                {
                    /* Create a subordinate directory. The first step is to
                     * ensure that the parent directory exists: */
                    de = getPath(poiFs, path.getParent());
                    /* Now create the target directory: */
                    de = de.createDirectory(path.getComponent
                                            (path.length() - 1));
                }
                paths.put(s, de);
                return de;
            }
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.DirectoryEntry.createDirectory()

                {
                    /* Create a subordinate directory. The first step is to
                     * ensure that the parent directory exists: */
                    de = getPath(poiFs, path.getParent());
                    /* Now create the target directory: */
                    de = de.createDirectory(path.getComponent
                                            (path.length() - 1));
                }
                paths.put(s, de);
                return de;
            }
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.DirectoryEntry.createDirectory()

                {
                    /* Create a subordinate directory. The first step is to
                     * ensure that the parent directory exists: */
                    de = getPath(poiFs, path.getParent());
                    /* Now create the target directory: */
                    de = de.createDirectory(path.getComponent
                                            (path.length() - 1));
                }
                paths.put(s, de);
                return de;
            }
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.DirectoryEntry.createDirectory()

                {
                    /* Create a subordinate directory. The first step is to
                     * ensure that the parent directory exists: */
                    de = getPath(poiFs, path.getParent());
                    /* Now create the target directory: */
                    de = de.createDirectory(path.getComponent
                                            (path.length() - 1));
                }
                paths.put(s, de);
                return de;
            }
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.DirectoryNode.createDirectory()

    DirectoryNode dir = baseDir;
    for(int i=0; i<path.length-1; i++) {
      try {
        dir = (DirectoryNode)dir.getEntry(path[i]);
      } catch(FileNotFoundException e) {
        dir.createDirectory(path[i]);
      }
    }

    // Update the byte array with the latest data
    generateData();
View Full Code Here

Examples of org.apache.roller.business.FileManager.createDirectory()

                    newDirPath = path + "/" + newDir;
                }
               
                try {
                    // add the new subdirectory
                    fmgr.createDirectory(website, newDirPath);
                   
                    messages.add(ActionMessages.GLOBAL_MESSAGE,
                        new ActionMessage("uploadFiles.createdDir", newDirPath));
                    saveMessages(request, messages);
                   
View Full Code Here

Examples of org.apache.roller.weblogger.business.FileManager.createDirectory()

           
            try {
                FileManager fmgr = WebloggerFactory.getWeblogger().getFileManager();
               
                // add the new subdirectory
                fmgr.createDirectory(getActionWeblog(), newDirPath);
               
                addMessage("uploadFiles.createdDir", newDirPath);
               
                // reset newDir prop so it doesn't autopopulate on the form
                setNewDir(null);
View Full Code Here

Examples of org.apache.roller.weblogger.business.FileManager.createDirectory()

               
                log.debug("Importing resource to "+resource.getPath());
               
                try {
                    if(resource.isDirectory()) {
                        fileMgr.createDirectory(website, resource.getPath());
                    } else {
                        // save file without file-type, quota checks, etc.
                        fileMgr.saveFile(website, resource.getPath(), "text/plain",
                                resource.getLength(), resource.getInputStream(), false);
                    }
View Full Code Here

Examples of org.apache.syncope.installer.utilities.FileSystemUtils.createDirectory()

        final String bundlesDirectory = args[8];
        final String syncopeVersion = args[9];
        final String syncopeAdminPassword = args[10];

        final FileSystemUtils fileSystemUtils = new FileSystemUtils(handler);
        fileSystemUtils.createDirectory(installPath);
        InstallLog.initialize(installPath, handler);

        final MavenUtils mavenUtils = new MavenUtils(mavenDir, handler);
        mavenUtils.archetypeGenerate(
                syncopeVersion, groupId, artifactId, secretKey, anonymousKey, installPath);
View Full Code Here

Examples of org.geoserver.platform.GeoServerResourceLoader.createDirectory()

        cal.set(Calendar.YEAR, cal.get(Calendar.YEAR) + 1);
        long oneYearInFuture = cal.getTimeInMillis();

        // Copy watertemp.zip test coverage resource in the data dir under a different name:
        GeoServerResourceLoader loader = getCatalog().getResourceLoader();
        File targetDir = loader.createDirectory(getDataDirectory().root(), coverageName.getPrefix()
                + File.separator + coverageName.getLocalPart());
        File target = new File(targetDir, coverageName.getLocalPart() + ".zip");
        loader.copyFromClassPath("org/geoserver/wms/dimension/watertemp.zip", target);

        // unpack the archive
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.