Changeset 2230
- Timestamp:
- 8/4/2010 3:06:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/SecureMoveErasureTargetConfigurer.cs
r2118 r2230 29 29 using System.Windows.Forms; 30 30 using System.IO; 31 using System.Text.RegularExpressions; 31 32 32 33 using Eraser.Manager; … … 83 84 public bool ProcessArgument(string argument) 84 85 { 85 throw new NotImplementedException(); 86 //The secure move source and target, which are separated by a pipe. 87 Regex regex = new Regex("(move=)?(?<source>.*)\\|(?<target>.*)", 88 RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.RightToLeft); 89 Match match = regex.Match(argument); 90 91 if (match.Groups["source"].Success && match.Groups["target"].Success) 92 { 93 //Get the source and destination paths 94 fromTxt.Text = match.Groups["source"].Value; 95 toTxt.Text = match.Groups["target"].Value; 96 97 //Check the folder radio button if the source is a folder. 98 moveFileRadio.Checked = !( 99 moveFolderRadio.Checked = Directory.Exists(fromTxt.Text)); 100 return true; 101 } 102 103 return false; 86 104 } 87 105
Note: See TracChangeset
for help on using the changeset viewer.
