Changeset 2555
- Timestamp:
- 3/20/2012 1:37:37 AM (14 months ago)
- Location:
- trunk/eraser
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
Eraser.Util/ExtensionMethods/PathUtil.cs (modified) (1 diff)
-
Eraser.Util/Strings.en.resx (modified) (1 diff)
-
Eraser.Util/Strings.it.resx (modified) (1 diff)
-
Eraser.Util/Strings.nl.resx (modified) (1 diff)
-
Eraser.Util/Strings.pl.resx (modified) (1 diff)
-
Eraser.Util/Strings.resx (modified) (1 diff)
-
Eraser.Util/VolumeInfo.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser
- Property svn:mergeinfo changed
/branches/eraser6/6.0 merged: 2554
- Property svn:mergeinfo changed
-
trunk/eraser/Eraser.Util/ExtensionMethods/PathUtil.cs
r2551 r2555 214 214 215 215 //Is it a directory? If it is, we need to add a trailing \ 216 if (Directory.Exists(path) )216 if (Directory.Exists(path) && !result.EndsWith("\\")) 217 217 result += '\\'; 218 218 return result; -
trunk/eraser/Eraser.Util/Strings.en.resx
r2512 r2555 145 145 <value>Session ended</value> 146 146 </data> 147 <data name="The path provided includes a reparse point which references another volume." xml:space="preserve"> 148 <value>The path provided includes a reparse point which references another volume.</value> 149 </data> 147 150 </root> -
trunk/eraser/Eraser.Util/Strings.it.resx
r2512 r2555 145 145 <value>(Untranslated)</value> 146 146 </data> 147 <data name="The path provided includes a reparse point which references another volume." xml:space="preserve"> 148 <value>(Untranslated)</value> 149 </data> 147 150 </root> -
trunk/eraser/Eraser.Util/Strings.nl.resx
r2512 r2555 145 145 <value>(Untranslated)</value> 146 146 </data> 147 <data name="The path provided includes a reparse point which references another volume." xml:space="preserve"> 148 <value>(Untranslated)</value> 149 </data> 147 150 </root> -
trunk/eraser/Eraser.Util/Strings.pl.resx
r2512 r2555 145 145 <value>(Untranslated)</value> 146 146 </data> 147 <data name="The path provided includes a reparse point which references another volume." xml:space="preserve"> 148 <value>(Untranslated)</value> 149 </data> 147 150 </root> -
trunk/eraser/Eraser.Util/Strings.resx
r2512 r2555 145 145 <value>Session ended</value> 146 146 </data> 147 <data name="The path provided includes a reparse point which references another volume." xml:space="preserve"> 148 <value>The path provided includes a reparse point which references another volume.</value> 149 </data> 147 150 </root> -
trunk/eraser/Eraser.Util/VolumeInfo.cs
r2549 r2555 30 30 using Microsoft.Win32.SafeHandles; 31 31 using System.Collections.ObjectModel; 32 using System.Globalization; 32 33 33 34 namespace Eraser.Util … … 311 312 currentDir = ExtensionMethods.PathUtil.ResolveReparsePoint(currentDir); 312 313 314 //If we get a volume identifier, we need to see if it is the only thing 315 //in the path. If it is, we found our volume GUID and we won't have to 316 //call GetVolumeNameForVolumeMountPoint. 317 if (currentDir.StartsWith("\\??\\Volume{")) 318 { 319 if (currentDir.Length == 49 && currentDir.EndsWith("}\\")) 320 return new VolumeInfo(string.Format(CultureInfo.InvariantCulture, 321 "\\\\?\\Volume{{{0}}}\\", currentDir.Substring(11, 36))); 322 else 323 throw new ArgumentException(S._("The path provided includes a " + 324 "reparse point which references another volume.")); 325 } 326 313 327 //Strip the NT namespace bit 314 if (currentDir.StartsWith("\\??\\Volume"))315 throw new ArgumentException(S._("The path provided includes a reparse" +316 "point which references another volume."));317 328 else 318 329 currentDir = currentDir.Substring(4);
Note: See TracChangeset
for help on using the changeset viewer.
