Revision 4f6d51d4 trunk/Pithos.Interfaces/FileInfoExtensions.cs
b/trunk/Pithos.Interfaces/FileInfoExtensions.cs | ||
---|---|---|
12 | 12 |
{ |
13 | 13 |
public static class FileInfoExtensions |
14 | 14 |
{ |
15 |
public static string AsRelativeTo(this FileInfo fileInfo,string path ) |
|
15 |
public static string AsRelativeTo(this FileSystemInfo fileInfo,string path )
|
|
16 | 16 |
{ |
17 | 17 |
if (String.IsNullOrWhiteSpace(path)) |
18 | 18 |
throw new ArgumentNullException("path"); |
... | ... | |
33 | 33 |
return relativePath; |
34 | 34 |
} |
35 | 35 |
|
36 |
public static string AsRelativeUrlTo(this FileInfo fileInfo,string path ) |
|
36 |
public static string AsRelativeUrlTo(this FileSystemInfo fileInfo,string path )
|
|
37 | 37 |
{ |
38 | 38 |
if (String.IsNullOrWhiteSpace(path)) |
39 | 39 |
throw new ArgumentNullException("path"); |
Also available in: Unified diff