ozeigermann    2004/10/27 12:18:47

  Modified:    src/stores/org/apache/slide/store/util FileHelper.java
  Log:
  Bug fix: copy from file to new file did not work
  
  Revision  Changes    Path
  1.6       +7 -3      
jakarta-slide/src/stores/org/apache/slide/store/util/FileHelper.java
  
  Index: FileHelper.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/util/FileHelper.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FileHelper.java   19 Oct 2004 11:33:32 -0000      1.5
  +++ FileHelper.java   27 Oct 2004 19:18:47 -0000      1.6
  @@ -180,6 +180,10 @@
               }
           } else {
               if (!target.isDirectory()) {
  +                if (!target.exists()) {
  +                    target.getParentFile().mkdirs();
  +                    target.createNewFile();
  +                }
                   copy(source, target, sharedBuffer);
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to