Examples of mkdirs()


Examples of de.schlichtherle.io.File.mkdirs()

            }
        }
        ArchiveDetector detector = getArchiveDetector(params.getPassword());
        java.io.File target2 = new java.io.File(target, projectFolder.getName());
        File zipTmp = new File(target2, detector);
        if (!zipTmp.mkdirs()) {
            throw new IOException("Failed to create the file.");
        }
        PackingFileFilter filter = params.getFileFilter();
        for(java.io.File f : projectFolder.listFiles(FileUtils.DIRECTORIES)) {
            zipFolderImpl(zipTmp, detector, f, filter);
View Full Code Here

Examples of edu.sdsc.grid.io.GeneralFile.mkdirs()

        // Make the parent dirs if necessary
    GeneralFile parent = file.getParentFile();

        if (!parent.exists())
        {
            parent.mkdirs();
        }

        //Create the corresponding file and open it
        file.createNewFile();
View Full Code Here

Examples of eu.stratosphere.core.fs.FileSystem.mkdirs()

        }
      } catch (FileNotFoundException fnfex) {
        // The exception is thrown if the requested file/directory does not exist.
        // if the degree of parallelism is > 1, we create a directory for this path
        if (getNumberOfSubtasks() > 1) {
          fs.mkdirs(path);
          return -1;
        } else {
          // a none existing file and a degree of parallelism that is one
          return 1;
        }
View Full Code Here

Examples of hudson.FilePath.mkdirs()

            public boolean perform(AbstractBuild<?, ?> abstractBuild, Launcher launcher, BuildListener buildListener) throws InterruptedException, IOException {
                final URL failedTestReport = OnlyRegressionsTest.class.getClassLoader().getResource("hudson/plugins/emailext/testreports/failed_test.xml");
                FilePath workspace = abstractBuild.getWorkspace();

                FilePath testDir = workspace.child("target").child("testreports");
                testDir.mkdirs();
                FilePath reportFile = testDir.child("failed_test.xml");
                reportFile.copyFrom(failedTestReport);

                return true;
            }
View Full Code Here

Examples of info.freelibrary.util.PairtreeObject.mkdirs()

                        LOGGER.debug("Removing pre-existing tile cache for test image");
                    }

                    if (!FileUtils.delete(ptObj)) {
                        fail("Unable to delete test image's tile cache: " + ptObj);
                    } else if (!ptObj.mkdirs()) {
                        fail("Unable to create test image's pairtree directory: " + ptObj);
                    }
                }

                if (LOGGER.isDebugEnabled()) {
View Full Code Here

Examples of info.freelibrary.util.PairtreeRoot.mkdirs()

                    }
                }
            } else {
                if (ptRoot.exists()) {
                    if (FileUtils.delete(ptRoot)) {
                        ptRoot.mkdirs();
                    } else if (LOGGER.isErrorEnabled()) {
                        LOGGER.error(BUNDLE.get("PT_TREE_DELETE", ptRoot));
                    }
                }
            }
View Full Code Here

Examples of java.io.File.mkdirs()

        // 2) then quickly delete the file and...
        // 3) convert it to a directory

        File tmpDir = File.createTempFile(prefix, suffix, parentDirectory); // create file with unique name
        boolean deleteOk = tmpDir.delete(); // delete the tmp file and...
        boolean mkdirsOk = tmpDir.mkdirs(); // ...convert it to a directory

        if (!deleteOk || !mkdirsOk) {
            throw new IOException("Failed to create temp directory named [" + tmpDir + "]");
        }
View Full Code Here

Examples of java.io.File.mkdirs()

        // Get DB directory
        final File h2Dir = new File(dataDir, H2_DATA_DIR);

        if (!h2Dir.exists())
        {
            h2Dir.mkdirs();
        }
        else if (!h2Dir.isDirectory())
        {
            throw new IOException("Failed to create directory: " + h2Dir);
        }
View Full Code Here

Examples of java.io.File.mkdirs()

   */
  public void setTvDataDir(File dir) {
    for (TvDataServiceProxy proxy : getDataServices()) {
      File dataServiceDir=new File(dir,proxy.getId());
      if (!dataServiceDir.exists()) {
        dataServiceDir.mkdirs();
      }
      proxy.setWorkingDirectory(dataServiceDir);
    }
  }

View Full Code Here

Examples of java.io.File.mkdirs()

  public void init() {
    try {
      String tvdataRoot = Settings.propTVDataDirectory.getString();
      File rootDir = new File(tvdataRoot);
      if (!rootDir.exists()) {
        rootDir.mkdirs();
      }
      setTvDataDir(rootDir);

      // load only the settings of services with current subscription
      TvDataServiceProxy[] proxies = getDataServices();
View Full Code Here
TOP
Copyright © 2015 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.