Changeset 2322


Ignore:
Timestamp:
10/29/2011 10:03:40 AM (3 years ago)
Author:
lowjoel
Message:

Call our relative-path handling class PathUtil? instead so that we do not conflict with the .NET runtime. This is to allow less typing when using both System.IO and Eraser.Util.ExtensionMethods?.

Location:
trunk/eraser
Files:
2 edited
1 moved

Legend:

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

    r2283 r2322  
    150150        { 
    151151            //Check the the destination is not a subfolder of the source. 
    152             if (Eraser.Util.ExtensionMethods.Path.IsRootedAt(info, Destination)) 
     152            if (PathUtil.IsRootedAt(info, Destination)) 
    153153            { 
    154154                Logger.Log(S._("The destination directory cannot be within the source directory."), 
     
    264264            string baseDir = System.IO.Path.Combine(Destination, source.Name); 
    265265            return System.IO.Path.Combine(baseDir, 
    266                 Eraser.Util.ExtensionMethods.Path.MakeRelativeTo(source, sourcePath)); 
     266                PathUtil.MakeRelativeTo(source, sourcePath)); 
    267267        } 
    268268 
  • trunk/eraser/Eraser.Util/Eraser.Util.csproj

    r2320 r2322  
    116116    </Compile> 
    117117    <Compile Include="ExtensionMethods\Assembly.cs" /> 
    118     <Compile Include="ExtensionMethods\Path.cs" /> 
     118    <Compile Include="ExtensionMethods\PathUtil.cs" /> 
    119119    <Compile Include="FileSize.cs" /> 
    120120    <Compile Include="Logger.cs" /> 
  • trunk/eraser/Eraser.Util/ExtensionMethods/PathUtil.cs

    r2319 r2322  
    3131    /// Additional Path utility methods. 
    3232    /// </summary> 
    33     public class Path 
     33    public class PathUtil 
    3434    { 
    3535        /// <summary> 
Note: See TracChangeset for help on using the changeset viewer.