Package java.io

Examples of java.io.File.mkdir()


          JOptionPane.YES_NO_OPTION);
        if (confirm != JOptionPane.YES_OPTION) return;
      }
    } else {
      if (circuits.size() > 1) {
        boolean created = dest.mkdir();
        if (!created) {
          JOptionPane.showMessageDialog(proj.getFrame(),
              Strings.get("exportNewDirectoryErrorMessage"),
              Strings.get("exportNewDirectoryErrorTitle"),
              JOptionPane.YES_NO_OPTION);
View Full Code Here


         } else if (cacheloaderClass.equals(FileCacheLoader.class.getName()))
         {
            String tmpLocation = getTempLocation(cacheID);
            File file = new File(tmpLocation);
            cleanFile(file);
            file.mkdir();
            tmpLocation = escapeWindowsPath(tmpLocation);
            String props = "location = " + tmpLocation + "\n";
            c.setCacheLoaderConfig(UnitTestConfigurationFactory.buildSingleCacheLoaderConfig(false, "", cacheloaderClass,
                  props, async, fetchPersistentState, false, false, false));
         }
View Full Code Here

    public void clearDirectory() throws IOException{
       
        File dirname = new File(Plugin.getPluginManager().getTvBrowserSettings().getTvBrowserUserHome() + File.separator + "CaptureDevices");
       
        if (!dirname.exists()) {
            dirname.mkdir();
        }
       
        File[] fileList = dirname.listFiles();
        if ((fileList != null) && (fileList.length > 0)) {
            for (File file : fileList) {
View Full Code Here

    //@SuppressWarnings("unused")
    //PrimaryDataManager manager =
    new PrimaryDataManager(new File("test"));

    // Create the prepared data
    prepDir.mkdir();

    // Create a dummy mirrorlist.txt with an invalid mirror
    FileOutputStream stream = null;
    try {
      stream = new FileOutputStream(new File(prepDir, "mirrorlist.txt"));
View Full Code Here

    setDebugging(Boolean.parseBoolean(System.getProperty(SYSPROP_DEBUG, "false")));

    try {
      File resourceManager = new File(getStateLocation().toFile(), "resourceManager");
      if (!resourceManager.exists()) {
        resourceManager.mkdir();
      }
      _resourceIndexManager = new ResourceIndexManager(resourceManager);
     
     
View Full Code Here

      _resourceManager.init(getBundleFile(Platform.getBundle(PLUGIN_ID)), getStateLocation().toFile());
     
      // init BeanListStore for Remoteservers
      File settings = new File(getStateLocation().toFile(), "settings");
      if(!settings.exists()){
        settings.mkdir();
      }     
      _wgaRemoteServerStore = new BeanListStore<WGARemoteServer>(settings,STORAGE_KEY_WGA_REMOTESERVERS, WGARemoteServer.class.getClassLoader());

      Bundle bundle = Platform.getBundle(PLUGIN_ID);      
      Path path = new Path("resources/tomcat");
View Full Code Here

     
      File orgCatalinaBase = runtime.getCatalinaBase().getLocation().toFile();
      // create new temp catalinabase  directory
      File catalinaBase = new File(WGADesignerPlugin.getDefault().getStateLocation().toFile(), "tomcat_current");
      if (!catalinaBase.exists()) {
        catalinaBase.mkdir();
      }
      WGUtils.delTree(catalinaBase, false);     
      // copy current conf from workspace
      File tmpConf = new File(catalinaBase, "conf");
      WGUtils.copyDirContent(new File(orgCatalinaBase, "conf"), tmpConf);
View Full Code Here

        fileLog.setFileOutput(false);
        fileLog.setConsoleOutput(true);
      } else {
        File file = new File(path);
        if (!file.exists()) {
          boolean mkdirRet = file.mkdir();
          if (!mkdirRet)
            throw new LogException("create dir " + path
                + " failure");
        }
View Full Code Here

   
    // ������ʱ�洢�ϴ��ļ���·��
    temp_upload_dir = getServletContext().getRealPath("/WEB-INF/tmp");
    File tmp_dir = new File(temp_upload_dir);
    if (!tmp_dir.exists())
      tmp_dir.mkdir();
  }

  /**
   * �ļ��ϴ�����
   */
 
View Full Code Here

    }

    File fl = new File(this.fullWorkingPath + dirName);

    try {
      if (!fl.mkdir()) {
        throw new CvFileException(CvFileException.COULD_NOT_CREATE_DIRECTORY, "Could not create Directory");
      }
    } catch (Exception e) {
      System.out.println("[Exception][CvDiskOperation] Exception thrown in createDirectory(): " + e);
      e.printStackTrace();
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.