Examples of mkdir()


Examples of org.jboss.forge.addon.resource.DirectoryResource.mkdir()

      tempDir.deleteOnExit();
      DirectoryResource currentResource = resourceFactory.create(DirectoryResource.class, tempDir);
      Shell shell = test.getShell();
      shell.setCurrentResource(currentResource);
      DirectoryResource child = currentResource.getChildDirectory("Forge 2 Escape");
      child.mkdir();
      child.deleteOnExit();
      Result result = test.execute("cd Forge\\ 2\\ Escape", 10, TimeUnit.SECONDS);
      Assert.assertThat(result.getMessage(), CoreMatchers.nullValue());
      Assert.assertEquals(shell.getCurrentResource(), child);
      currentResource.delete(true);
View Full Code Here

Examples of org.jboss.forge.resources.DirectoryResource.mkdir()

         }

         if (buildDir.exists())
         {
            buildDir.delete(true);
            buildDir.mkdir();
         }

         ShellMessages.info(out, "Checking out plugin source files to [" + buildDir.getFullyQualifiedName()
                  + "] via 'git'");
         Git repo = GitUtils.clone(buildDir, gitRepo);
View Full Code Here

Examples of org.jboss.virtual.AssembledDirectory.mkdir()

   }

   public void testMkDir() throws Exception
   {
      AssembledDirectory directory = AssembledContextFactory.getInstance().create("foo.jar");
      directory.mkdir("META-INF");
      assertNotNull(directory.getChild("META-INF"));
   }

   public void testRemoveAndClear() throws Exception
   {
View Full Code Here

Examples of org.jboss.virtual.plugins.context.vfs.AssembledDirectory.mkdir()

   {
      AssembledDirectory jar = AssembledContextFactory.getInstance().create("tutorial.jar");
      String[] includes = {"**/beans/*.class"};
      jar.addResources(Customer.class, includes, null);
      // Get tutorial-persistence.xml from classloader and alias it within the archive.
      jar.mkdir("META-INF").addResource("tutorial-persistence.xml", "persistence.xml");

      Bootstrap.getInstance().bootstrap();
      Bootstrap.getInstance().deploy(jar);

      run();
View Full Code Here

Examples of org.maqetta.server.IStorage.mkdir()

  }

  public void saveDraft(IDesignerUser user, Version version) throws IOException {
    IStorage commentingDir = user.getCommentingDirectory();
    if (!commentingDir.exists()) {
      commentingDir.mkdir();
      (commentingDir.newInstance(commentingDir, "snapshot")).mkdir();
    }
    saveVersionFile(user);
  }
View Full Code Here

Examples of org.maqetta.server.IVResource.mkdir()

//    IStorage directory = this.userDirectory.newInstance(path);
    /* make sure the new resoruce is within the user directory */
   
    IVResource userFile = this.workspace.create(path);
    if(isFolder){
      userFile.mkdir();
    }else{
      userFile.createNewInstance();
    }
    return userFile;
  }
View Full Code Here

Examples of org.platformlayer.ops.OpsTarget.mkdir()

    File fstabFile = new File("/etc/fstab");
    String fstab = target.readTextFile(fstabFile);
    fstab += fstabLine;
    FileUpload.upload(target, fstabFile, fstab);

    target.mkdir(cgroupsFile);

    Command mountCommand = Command.build("mount cgroup");
    target.executeCommand(mountCommand);

    // mkdir /cgroup
View Full Code Here

Examples of org.springframework.data.hadoop.fs.FsShell.mkdir()

  protected void initializeCounterIfNecessary() {
    if (!initialized) {
      FsShell fsShell = new FsShell(getFileSystem().getConf(), getFileSystem());
      try {
        if (!fsShell.test(getBasePath())) {
          fsShell.mkdir(getBasePath());
        }
        int maxCounter = 0;
        boolean foundFile = false;
        Collection<FileStatus> fileStats = fsShell.ls(this.getBasePath());
        for (FileStatus fileStatus : fileStats) {
View Full Code Here

Examples of org.springframework.integration.smb.session.SmbSession.mkdir()

    SmbSessionFactory smbSessionFactory = ac.getBean("smbSessionFactory", SmbSessionFactory.class);
    smbSessionFactory.setReplaceFile(true);
    SmbSession smbSession = smbSessionFactory.getSession();

    // place text files onto the share
    smbSession.mkdir(testRemoteDir);

    String[] fileNames = createTestFileNames(5);
    for (int i = 0; i < fileNames.length; i++) {
      smbSession.write(("File [" + fileNames[i] + "] written by test case [" + getMethodName() + "].").getBytes(), testRemoteDir + fileNames[i]);
    }
View Full Code Here

Examples of org.terrier.utility.io.FileSystem.mkdir()

    if (fs == null)
      return false;
    if ((fs.capabilities() & FSCapability.WRITE) == 0)
      return false;
    try{
      return fs.mkdir(path);
    } catch (IOException ioe) {
      return false;
    }
  }
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.