Ignore:
Timestamp:
3/25/2008 12:39:31 PM (6 years ago)
Author:
lowjoel
Message:

When calling File.GetFileDescription? or File.GetFileIcon?, the path provided must end with a trailing \ if the path is a directory or volume.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/TaskDataSelectionForm.cs

    r283 r293  
    4545                    DriveItem item = new DriveItem(); 
    4646                    item.Drive = drive.Substring(0, drive.Length - 1); 
    47                     item.Label = Eraser.Util.File.GetFileDescription(item.Drive); 
    48                     item.Icon = Eraser.Util.File.GetFileIcon(item.Drive); 
     47                    item.Label = Eraser.Util.File.GetFileDescription(item.Drive + 
     48                        Path.DirectorySeparatorChar); 
     49                    item.Icon = Eraser.Util.File.GetFileIcon(item.Drive + 
     50                        Path.DirectorySeparatorChar); 
    4951                    unusedDisk.Items.Add(item); 
    5052                } 
Note: See TracChangeset for help on using the changeset viewer.