FileSystemExtensions class
namespace: Serenity assembly: Serenity.Net.Core
Provides extension methods for IFileSystem that delegate to Path helpers, reducing direct dependency on System.IO in case these methods are later added to IFileSystem.
public static class FileSystemExtensions
Public Members
| name | description |
|---|---|
| static ChangeExtension(…) | Changes the extension of a path string. |
| static Combine(…) | Combines two path strings. (3 methods) |
| static Copy(…) | Copies a file to another destination, optionally overwriting the destination if it exists. |
| static GetDirectoryName(…) | Gets the directory name for the specified path. |
| static GetExtension(…) | Gets the extension for the specified path. |
| static GetFileName(…) | Gets the file name for the specified path. |
| static GetFileNameWithoutExtension(…) | Gets the file name without its extension for the specified path. |
| static IsPathRooted(…) | Gets a value indicating whether the specified path is rooted. |
See Also
- Source: FileSystemExtensions.cs