Package org.apache.roller.business

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


       
        // we should be starting with 0 directories
        assertEquals(0, fmgr.getDirectories(testWeblog).length);
       
        // create a directory
        fmgr.createDirectory(testWeblog, "bucket0");
       
        // make sure directory was created
        WeblogResource[] dirs = fmgr.getDirectories(testWeblog);
        assertNotNull(dirs);
        assertEquals(1, dirs.length);
View Full Code Here

        // we should be starting with 0 files and 0 directories
        assertEquals(0, fmgr.getFiles(testWeblog, null).length);
        assertEquals(0, fmgr.getDirectories(testWeblog).length);
       
        // create a directory
        fmgr.createDirectory(testWeblog, "bucket1");
       
        // make sure directory was created
        WeblogResource[] dirs = fmgr.getDirectories(testWeblog);
        assertNotNull(dirs);
        assertEquals(1, dirs.length);
View Full Code Here

               
                log.debug("Importing resource "+resourceFile.getAbsolutePath()+" to "+path);
               
                try {
                    if(resourceFile.isDirectory()) {
                        fileMgr.createDirectory(website, path);
                    } else {
                        fileMgr.saveFile(website, path, "text/plain",
                                resourceFile.length(), new FileInputStream(resourceFile));
                    }
                } catch (Exception ex) {
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.