Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3848

Show
Ignore:
Timestamp:
08/03/08 17:22:49 (4 months ago)
Author:
kris
Message:

Fixed issue with TempFile? name, and potential duplicate delete-operation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/vfs/ZipFolder.d

    r3688 r3848  
    436436            debug( ZipFolder ) 
    437437                Stderr(" sync: destroying temp file").newline; 
    438             auto tempFilePath = tempFile.path.dup; 
    439             delete tempFile; 
     438 
    440439            debug( ZipFolder ) 
    441440                Stderr.formatln(" sync: renaming {} to {}", 
    442                         tempFilePath, path); 
    443             tempFilePath.rename(path); 
     441                        tempFile, path); 
     442 
     443            Path.rename (tempFile.path, path); 
    444444        } 
    445445