Search:

Type: Posts; User: stdunbar

Search: Search took 0.10 seconds.

  1. Re: We get the exception :Cannot create a file when that file already exists

    I would do something like:


    public static synchronized void makeDirectories( File file ) {
    boolean createdDirectories = file.mkdirs();

    if( !createdDirectories )
    throw new...
  2. Re: We get the exception :Cannot create a file when that file already exists

    Do yourself a favor and don't over analyze this. You're worrying about micro-optimization - how long does it really take to create a set of directories especially after the first time? I'm willing...
Results 1 to 2 of 2