Examples of mkdir()


Examples of com.xebialabs.overthere.OverthereFile.mkdir()

            OverthereFile holder = getFileForTempFile(temporaryDirectory, holderName);
            if (!holder.exists()) {
                logger.trace("Creating holder directory {} for temporary file with name {}", holder, name);
                try {
                    originalExc = null;
                    holder.mkdir();
                    temporaryFileHolderDirectories.add(holder);
                    OverthereFile tempFile = holder.getFile(name);
                    logger.debug("Generated temporary file name {}", tempFile);
                    return tempFile;
                } catch(RuntimeException exc) {
View Full Code Here

Examples of com.zaranux.client.java.io.File.mkdir()

    String name = args[0];
    String dir = getCurrentDirectory(); // current directory
     
    File f= new File(dir);
   
      f.mkdir(new AsyncCallback<Boolean>() {

        public void onFailure(Throwable T) {
          System.out.print( "making new directory failed.", callback );
        }
View Full Code Here

Examples of common.api.ApiClient.mkdir()

            String sortboxPath = user.sortingFolder;
            if (! client.exists(sortboxPath)) {
                // 1. create missing Sortbox folder
                Logger.info("SortMyBox folder missing for user '%s' at path '%s'",
                          user, sortboxPath);
                createdSortboxDir = client.mkdir(sortboxPath);
                if (createdSortboxDir) {
                    // 2. create canned rules
                    createdCannedRules = createCannedRules(user);
                }
            }
View Full Code Here

Examples of java.io.File.mkdir()

    while (true) {       
      String[] indexs = Config.getInstance().getIndexNames();
      for( int i=0; i<indexs.length; i++ ) {
        File rep = new File( Config.getInstance().getIndexRoot(), indexs[i] );
        if( !rep.exists() ) {
          rep.mkdir();
        }
      }
      try {
        System.out.println("["+Thread.currentThread().getName()+"] ReIndexation");   
        Mapping.begin();
View Full Code Here

Examples of java.io.File.mkdir()

  static File createTempDirectory() throws IOException {
    File temp = File.createTempFile("temp", Long.toString(System.nanoTime()));

    temp.delete();

    if (!(temp.mkdir())) {
      throw new IOException("Could not create temp directory: "
          + temp.getAbsolutePath());
    }

    return temp;
View Full Code Here

Examples of java.io.File.mkdir()

      return;
    }
   
    File dialogSubDir = new File(wekaHome.toString() + File.separator + "systemDialogs");
    if (!dialogSubDir.exists()) {
      if (!dialogSubDir.mkdir()) {
        return;
      }
    }
   
    File dialogFile = new File(dialogSubDir.toString() + File.separator + dialogName);
View Full Code Here

Examples of java.io.File.mkdir()

      return;
    }
   
    File dialogSubDir = new File(wekaHome.toString() + File.separator + "systemDialogs");
    if (!dialogSubDir.exists()) {
      if (!dialogSubDir.mkdir()) {
        return;
      }
    }
   
    File dialogFile = new File(dialogSubDir.toString() + File.separator + dialogName);
View Full Code Here

Examples of java.io.File.mkdir()

    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    if (!cacheDir.exists()) {
      if (!cacheDir.mkdir()) {
        System.err.println("Unable to create repository cache directory ("
            + cacheDir.getAbsolutePath() + ")");
        CACHE_URL = null;
      } else {
        // refreshCache();
View Full Code Here

Examples of java.io.File.mkdir()

    final Properties prop = service.storeSettings();
    if (prop!=null) {
      String dir=Settings.getUserSettingsDirName();
      File f=new File(dir);
      if (!f.exists()) {
        f.mkdir();
      }
      f=new File(dir,service.getId()+".service");
      try {
        StreamUtilities.outputStream(f, new OutputStreamProcessor() {
          public void process(OutputStream outputStream) throws IOException {
View Full Code Here

Examples of java.io.File.mkdir()

              filePath = "."; //$NON-NLS-1$
          }
    }
    File scratchDirectory = new File(filePath);
        if(!scratchDirectory.exists()) {
            scratchDirectory.mkdir();
        }
      return filePath;
  }
 
  public static final <T extends Serializable> T helpSerialize(T object) throws IOException, ClassNotFoundException {
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.