diff --git a/Sources/Directory.Build.props b/Sources/Directory.Build.props index fdadf85..1e84e63 100644 --- a/Sources/Directory.Build.props +++ b/Sources/Directory.Build.props @@ -14,7 +14,7 @@ https://github.com/kysect/Kysect.CommonLib https://github.com/kysect/Kysect.CommonLib - 0.1.19 + 0.1.20 diff --git a/Sources/Kysect.CommonLib/FileSystem/DirectoryExtensions.cs b/Sources/Kysect.CommonLib/FileSystem/DirectoryExtensions.cs index 91d4ac0..1e58357 100644 --- a/Sources/Kysect.CommonLib/FileSystem/DirectoryExtensions.cs +++ b/Sources/Kysect.CommonLib/FileSystem/DirectoryExtensions.cs @@ -5,7 +5,7 @@ namespace Kysect.CommonLib.FileSystem; public static class DirectoryExtensions { - public static void EnsureParentDirectoryExists(IFileSystem fileSystem, string path) + public static void EnsureParentDirectoryExists(this IFileSystem fileSystem, string path) { fileSystem.ThrowIfNull(); path.ThrowIfNull(); @@ -14,7 +14,7 @@ public static void EnsureParentDirectoryExists(IFileSystem fileSystem, string pa EnsureParentDirectoryExists(fileSystem, fileInfo); } - public static void EnsureParentDirectoryExists(IFileSystem fileSystem, IFileInfo file) + public static void EnsureParentDirectoryExists(this IFileSystem fileSystem, IFileInfo file) { fileSystem.ThrowIfNull(); file.ThrowIfNull(); @@ -25,7 +25,7 @@ public static void EnsureParentDirectoryExists(IFileSystem fileSystem, IFileInfo EnsureDirectoryExists(fileSystem, file.Directory); } - public static void EnsureDirectoryExists(IFileSystem fileSystem, IDirectoryInfo directory) + public static void EnsureDirectoryExists(this IFileSystem fileSystem, IDirectoryInfo directory) { fileSystem.ThrowIfNull(); directory.ThrowIfNull(); @@ -33,7 +33,7 @@ public static void EnsureDirectoryExists(IFileSystem fileSystem, IDirectoryInfo EnsureDirectoryExists(fileSystem, directory.FullName); } - public static void EnsureDirectoryExists(IFileSystem fileSystem, string path) + public static void EnsureDirectoryExists(this IFileSystem fileSystem, string path) { fileSystem.ThrowIfNull(); path.ThrowIfNull();