Examples of createDirectory()


Examples of com.cloudloop.storage.CloudStore.createDirectory()

    CloudPath path = new CloudPath( args.getArguments().get( 0 ) , CliSession.getSession( )
        .getCurrentDirectory( ) , CliSession.getSession( )
        .getCloudloop( ) );

    CloudStore cloudStore = (CloudStore) path.getCloudProvider( );
    cloudStore.createDirectory( cloudStore.getDirectory( path.getPath( ) ) );

    return 0;
  }

View Full Code Here

Examples of com.cloudloop.storage.adapter.CloudStoreAdapterBase.createDirectory()

   
    @Test
    public void testSendContainsRequest( )
    {
  CloudStoreAdapterBase store = getCloudStoreAdapter( );
  store.createDirectory( store.getDirectory( "foo/bar/../" ) );
  CloudStoreDirectory dir = store.getDirectory( "foo/bar/../" );
  assertTrue( store.contains( dir ) );
    }
   
    @Test
View Full Code Here

Examples of it.sauronsoftware.ftp4j.FTPClient.createDirectory()

                && client.isConnected()
                && StringUtils.hasText(_workingFolder)) {
            try {
                client.changeDirectory("/");
                if (!_workingFolder.equalsIgnoreCase("/")) {
                    client.createDirectory(_workingFolder);
                }
                return true;
            } catch (FTPException ex) {
                if (ex.getCode() == 550) {
                    return true;
View Full Code Here

Examples of jSimMacs.logic.handler.DataHandler.createDirectory()

        frame.addRemoteProjectRunMenu(remoteProject);
      } else {
        localProjects.add(project);
        frame.addLocalProjectRunMenu(project);
      }
      return dataHandler.createDirectory(project.getName(), false);
    } catch (IOException e) {
      String message = e.getMessage();
      if (e.getCause() != null) {
        message += "\n Caused by: " + e.getCause().getMessage();
      }
View Full Code Here

Examples of jSimMacs.logic.handler.DataHandler.createDirectory()

        local = false;
      }
      String dirTmp = "";
      for (int i = 0; i < dirs.length; i++) {
        dirTmp += dirs[i];
        handler.createDirectory(project.getPathName() + dirTmp, false);
        if(local)
          dirTmp += File.separator;
        else
          dirTmp += "/";
      }
View Full Code Here

Examples of jSimMacs.logic.handler.DataHandler.createDirectory()

    if (!fileDirectory.endsWith("/")) {
      fileDirectory += "/";
    }

    fileDirectory += s;
    if (!handler.createDirectory(fileDirectory, true))
      return null;
    return fileDirectory;

  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.IVirtualDirectory.createDirectory()

      ZipEntry entry = null;
      do {
        entry = input.getNextEntry();
        if (entry != null) {
          if (entry.getName().endsWith("/")) {
            directory.createDirectory(new SimplePath(entry.getName()));
          } else
            directory.createFile(new SimplePath(entry.getName()), IOUtil.read(input, null, false));
        }
      } while (entry != null);
    } catch (IOException e) {
View Full Code Here

Examples of net.sourceforge.pebble.domain.FileManager.createDirectory()

   * Tests that files can be accessed.
   */
  public void testViewFiles() throws Exception {
    // create some files and directories
    FileManager fileManager = new FileManager(blog, FileMetaData.BLOG_FILE);
    fileManager.createDirectory("/", "a");
    fileManager.createDirectory("/", "z");
    fileManager.saveFile("/", "y.txt", "Some content");
    fileManager.saveFile("/", "b.txt", "Some content");

    request.setParameter("path", "/");
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
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.