Examples of createDirectory()


Examples of org.sd_network.vfs.VfsService.createDirectory()

        String dirName = commandLine.getArgs()[0];
        String parentFileID = session.getCurrentDirectory().getID();

        try {
            vfsService.createDirectory(sessionID, parentFileID, dirName);
        } catch (VfsIOException e) {
            System.out.println("ERROR: " + e.getMessage());
        } catch (SessionException e) {
            session.clearSessionID();
            System.out.println("ERROR: Session time out.");
View Full Code Here

Examples of org.uberfire.java.nio.fs.file.SimpleFileSystemProvider.createDirectory()

        final String userSourcePath = System.getProperty( "user.dir" ) + "/temp";
        final String userDestPath = System.getProperty( "user.dir" ) + "/temp2";

        final Path source = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), userSourcePath, false );
        final Path dest = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), userDestPath, false );
        fsProvider.createDirectory( source );

        fsProvider.copy( source, dest );

        assertThat( dest.toFile().exists() ).isTrue();
        assertThat( source.toFile().exists() ).isTrue();
View Full Code Here

Examples of railo.commons.io.res.Resource.createDirectory()

   
      // ConfigWeb
      Resource trg = config.getConfigDir().getRealResource("context").getRealResource(realpath);
        if(trg.exists()) trg.remove(true);
        Resource p = trg.getParentResource();
        if(!p.isDirectory()) p.createDirectory(true);
        IOUtil.copy(is, trg.getOutputStream(false), closeStream,true);
        filesDeployed.add(trg);
        _store((ConfigImpl)config);
    }
  public boolean removeContext(Config config, boolean store,String... realpathes) throws PageException, IOException, SAXException {
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.