Package java.io

Examples of java.io.File.mkdirs()


      final File directory = file.getAbsoluteFile().getParentFile();
      if (directory != null)
      {
        if (directory.exists() == false)
        {
          if (directory.mkdirs() == false)
          {
            CSVDataExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
View Full Code Here


      final File directory = file.getParentFile();
      if (directory != null)
      {
        if (directory.exists() == false)
        {
          if (directory.mkdirs() == false)
          {
            PlainTextExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
View Full Code Here

      }

      final File targetDirectory = targetFile.getParentFile();
      if (targetDirectory.exists() == false)
      {
        if (targetDirectory.mkdirs() == false)
        {
          throw new IOException("Unable to create the target-directory.");
        }
      }
View Full Code Here

      }

      final File targetDirectory = targetFile.getParentFile().getCanonicalFile();
      if (targetDirectory.exists() == false)
      {
        if (targetDirectory.mkdirs() == false)
        {
          throw new IOException("Unable to create the target-directory.");
        }
      }
View Full Code Here

          throw new ReportProcessingException("DataDirectory is invalid: " + dataDirectory);
        }
      }
      else if (dataDirectory.exists() == false)
      {
        if (dataDirectory.mkdirs() == false)
        {
          throw new IOException("Unable to create the data-directory.");
        }
      }
View Full Code Here

              String tempDir = System.getProperty("java.io.tmpdir");
              dir = new File(tempDir, moduleName.toLowerCase() + "_images");
        } else {
            dir = new File(DataCrow.moduleDir + "data", moduleName.toLowerCase() + "_images");
        }
        dir.mkdirs();
       
        client.notifyStartedSubProcess(icons.size());
        client.notifyMessage(DcResources.getText("msgSavingImagesTo", dir.toString()));
       
        for (DcImageIcon icon : icons) {
View Full Code Here

          f = new File( def_dir, TRANSCODE_DIR_DEFAULT );
        }
      }
      if ( persist ){
     
        f.mkdirs();
      }
    }
   
    return( f );
  }
View Full Code Here

    final File  config_dir = new File( SystemProperties.getUserPath(), "net" );
   
    if ( !config_dir.exists()){
     
      config_dir.mkdirs();
    }
   
    NetworkAdmin.getSingleton().addAndFirePropertyChangeListener(
      new NetworkAdminPropertyChangeListener()
      {
View Full Code Here

            if (parent == null) {
                return;
            }
            File dir = new File(parent);
            for (int i = 0; i < SysProperties.MAX_FILE_RETRY; i++) {
                if ((dir.exists() && dir.isDirectory()) || dir.mkdirs()) {
                    return;
                }
                wait(i);
            }
            throw DbException.get(ErrorCode.FILE_CREATION_FAILED_1, parent);
View Full Code Here

                  File targetFolder = new File(getDeployDir(), relativePathToFolder);
                  if (delta.getKind() == IResourceDelta.ADDED) {
                    if (WGADesignerPlugin.getDefault().isDebugging()) {
                      System.out.println("Creating folder '" + targetFolder.getAbsolutePath() + "' in deployment '" + getName() + "'.");
                    }
                    targetFolder.mkdirs();
                  } else if (delta.getKind() == IResourceDelta.REMOVED) {
                    if (WGADesignerPlugin.getDefault().isDebugging()) {
                      System.out.println("Deleting folder '" + targetFolder.getAbsolutePath() + "' of deployment '" + getName() + "'.");
                    }
                    if (targetFolder.exists()) {
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.