Ignore:
Timestamp:
8/4/2010 1:14:58 AM (22 months ago)
Author:
lowjoel
Message:

Based on r2226, allow the file and folder erasure target configurers to detect a path (of their own type) and then accept it as their own. This allows the specification of paths on the command line without explicit handler requirements, so things like these work:

eraser addtask D:\test.txt D:\testing

And a file target and a directory target will be made, respectively, using default settings.

Also fixed an implementation error where the return code of the ProcessArgument? function was not properly set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FileErasureTargetConfigurer.cs

    r2070 r2228  
    3333using Eraser.Manager; 
    3434using Eraser.Util; 
     35using System.IO; 
    3536 
    3637namespace Eraser.DefaultPlugins 
     
    9394                return true; 
    9495            } 
     96            else if (File.Exists(argument)) 
     97            { 
     98                filePath.Text = argument; 
     99                return true; 
     100            } 
    95101 
    96102            return false; 
Note: See TracChangeset for help on using the changeset viewer.