Subversion Repository Public Repository

litesoft

Diff Revisions 73 vs 76 for /trunk/Java/core/Server/src/org/litesoft/util/FileUtils.java

Diff revisions: vs.
  @@ -160,7 +160,7 @@
160 160 throws FileSystemException
161 161 {
162 162 Utils.assertNotNull( "File", pFile );
163 - File file = new File( pFile.getAbsolutePath() + ".new" );
163 + File file = DirectoryUtils.insureParentDirectory( new File( pFile.getAbsolutePath() + ".new" ) );
164 164 try
165 165 {
166 166 OutputStream os = new FileOutputStream( file );