Changeset 1140
- Timestamp:
- 6/19/2009 2:49:29 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Manager/FileSystem.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Manager/FileSystem.cs
r1094 r1140 356 356 ErasureMethod method, FileSystemEntriesEraseProgress callback) 357 357 { 358 DirectoryInfo rootDir = new DirectoryInfo(FileSystem.GenerateRandomFileName( 359 new DirectoryInfo(volume.MountPoints[0]), 32)); 360 rootDir.Create(); 361 358 362 try 359 363 { 360 364 //Squeeze one-byte files until the volume or the MFT is full. 361 DirectoryInfo rootDir = new DirectoryInfo(info.MountPoints[0]); 362 long oldMFTSize = NtfsApi.GetMftValidSize(info); 365 long oldMFTSize = NtfsApi.GetMftValidSize(volume); 363 366 364 367 for ( ; ; ) … … 387 390 //OK, enough squeezing. 388 391 } 392 finally 393 { 394 rootDir.Delete(true); 395 } 389 396 } 390 397 … … 393 400 { 394 401 //Create a directory to hold all the temporary files 395 DirectoryInfo tempDir = new DirectoryInfo( info.MountPoints[0]);396 tempDir = new DirectoryInfo(FileSystem.GenerateRandomFileName(tempDir, 32));402 DirectoryInfo tempDir = new DirectoryInfo(FileSystem.GenerateRandomFileName( 403 new DirectoryInfo(info.MountPoints[0]), 32)); 397 404 tempDir.Create(); 398 405
Note: See TracChangeset
for help on using the changeset viewer.
