Tabnine Logo
FileHelper.createParentDirectories
Code IndexAdd Tabnine to your IDE (free)

How to use
createParentDirectories
method
in
uk.ac.ebi.intact.application.dataConversion.FileHelper

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.FileHelper.createParentDirectories (Showing top 6 results out of 315)

origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Check and create all missing parent directory.
 *
 * @param filename the filename to check.
 */
public static void checkParentDirectory( String filename ) {
  // check that all parent directory exist in the given filename
  // 1, change SLASH by the
  if ( filename.indexOf( FileGenerator.SLASH ) != -1 ) {
    // 2. replace all slash by plateform specific file separator (if necessary)
    final String separator = System.getProperty( "file.separator" );
    if ( ! FileGenerator.SLASH.equals( separator ) ) {
      StringBuffer sb = new StringBuffer( filename );
      int idx;
      while ( ( idx = sb.indexOf( FileGenerator.SLASH ) ) != -1 ) {
        sb.replace( idx, idx + 1, separator );
      }
      filename = sb.toString();
    }
    // 3. make sure that the parent directories exists before to create the file.
    createParentDirectories( filename, separator );
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Check and create all missing parent directory.
 *
 * @param filename the filename to check.
 */
public static void checkParentDirectory( String filename ) {
  // check that all parent directory exist in the given filename
  // 1, change SLASH by the
  if ( filename.indexOf( FileGenerator.SLASH ) != -1 ) {
    // 2. replace all slash by plateform specific file separator (if necessary)
    final String separator = System.getProperty( "file.separator" );
    if ( ! FileGenerator.SLASH.equals( separator ) ) {
      StringBuffer sb = new StringBuffer( filename );
      int idx;
      while ( ( idx = sb.indexOf( FileGenerator.SLASH ) ) != -1 ) {
        sb.replace( idx, idx + 1, separator );
      }
      filename = sb.toString();
    }
    // 3. make sure that the parent directories exists before to create the file.
    createParentDirectories( filename, separator );
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Check and create all missing parent directory.
 *
 * @param filename the filename to check.
 */
public static void checkParentDirectory( String filename ) {
  // check that all parent directory exist in the given filename
  // 1, change SLASH by the
  if ( filename.indexOf( FileGenerator.SLASH ) != -1 ) {
    // 2. replace all slash by plateform specific file separator (if necessary)
    final String separator = System.getProperty( "file.separator" );
    if ( ! FileGenerator.SLASH.equals( separator ) ) {
      StringBuffer sb = new StringBuffer( filename );
      int idx;
      while ( ( idx = sb.indexOf( FileGenerator.SLASH ) ) != -1 ) {
        sb.replace( idx, idx + 1, separator );
      }
      filename = sb.toString();
    }
    // 3. make sure that the parent directories exists before to create the file.
    createParentDirectories( filename, separator );
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

FileHelper.createParentDirectories( fileName, separator );
origin: uk.ac.ebi.intact.util/data-conversion

FileHelper.createParentDirectories( fileName, separator );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

FileHelper.createParentDirectories( fileName, separator );
uk.ac.ebi.intact.application.dataConversionFileHelpercreateParentDirectories

Javadoc

Make sure that the parent directories of the given filename exist.

Popular methods of FileHelper

  • checkParentDirectory
    Check and create all missing parent directory.
  • fixFileSeparator
    Replace all file sepator (namely / and \\) by the plateform specific one.
  • removeChunkFlag
    Remove the chunk size flag from a String.

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now