Examples of mkdir()


Examples of java.io.File.mkdir()

    envConfig.setTransactional(resumable);
    envConfig.setLocking(resumable);

    File envHome = new File(storageFolder + "/frontier");
    if (!envHome.exists()) {
      envHome.mkdir();
    }
    if (!resumable) {
      IO.deleteFolderContents(envHome);
    }
View Full Code Here

Examples of java.io.File.mkdir()

    for (int i = 0; i < indexFiles.length; i++) {
      String fileName = indexFiles[i].getName();
      File targetFile = new File(toDir, fileName);
      if (indexFiles[i].isDirectory()) {
        if (copySubDirs) {
          targetFile.mkdir();
          copyDirectory(indexFiles[i], targetFile, copySubDirs, excludeExtension);
        }
      } else if ((excludeExtension == null) || (!fileName.endsWith(excludeExtension))) {
        RegainToolkit.copyFile(indexFiles[i], targetFile);
      }
View Full Code Here

Examples of java.io.File.mkdir()

        }
        File tmp = null;
        try {
            tmp = File.createTempFile("tmp", ".wsdl");
            tmp.delete();
            tmp.mkdir();
        } catch (IOException ex) {
            LOG.log(Level.SEVERE, "WSDL_GENERATION_TMP_DIR_MSG", ex);
            return null;
        }
View Full Code Here

Examples of java.io.File.mkdir()

      if (subDirName == null || subDirName.trim().length() < 1)
         throw new Exception("The subdirectory to be used to store the initial data is empty");
      File subDir = new File(dirWhereToStore, subDirName);
      String completeSubdirName = subDir.getAbsolutePath();
      if (!subDir.exists()) {
         if (!subDir.mkdir()) {
            String txt = "could not make '" + completeSubdirName + "' to be a directory. Check your rights";
            log.severe(txt);
            throw new Exception(txt);
         }
      }
View Full Code Here

Examples of java.io.File.mkdir()

         if (!tmp.canWrite())
            throw new Exception("Can not write in directory '" + subDir + "' in '" + directory.getAbsolutePath() + "'.");
        
         for (int i=0; i < list.size(); i++) {
            tmp = new File(tmp, (String)list.get(i));
            tmp.mkdir();
         }
         dir = tmp;
      }
     
      File file = new File(dir, fileName);
View Full Code Here

Examples of java.io.File.mkdir()

      }
      cleanUpDirs();
     
      try {
         file = new File(this.dirName);
         boolean ret = file.mkdir();
         assertTrue("could not create directory '" + this.dirName + "'", ret);
         file = new File(this.dirNameSent);
         file.createNewFile();
      }
      catch (IOException ex) {
View Full Code Here

Examples of java.io.File.mkdir()

      }
      cleanUpDirs();
     
      try {
         file = new File(this.pollerDirName);
         boolean ret = file.mkdir();
         assertTrue("could not create directory '" + this.pollerDirName + "'", ret);
         file = new File(this.pollerDirNameSent);
         file.createNewFile();
      }
      catch (IOException ex) {
View Full Code Here

Examples of java.io.File.mkdir()

      }
      cleanUpDirs();
     
      try {
         file = new File(this.dirName);
         boolean ret = file.mkdir();
         assertTrue("could not create directory '" + this.dirName + "'", ret);
         file = new File(this.dirNameSent);
         file.createNewFile();
      }
      catch (IOException ex) {
View Full Code Here

Examples of java.io.File.mkdir()

    if (lockDir.exists()) {
      removeInvalidLock(lockDir);
    }

    if (!lockDir.mkdir()) {
      return null;
    }

    Lock lock = null;
View Full Code Here

Examples of java.io.File.mkdir()

                        }
                        else
                        {
                            final File targetDirectory = new File(explodedEarDirectory,
                                    file.getName());
                            targetDirectory.mkdir();
                            FileUtils.copyDirectory(
                                file,
                                targetDirectory);
                        }
                    }
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.