From 2c738c46051d75f76375dea4b16013b005a9f9eb Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 18:05:32 +0300 Subject: [PATCH 1/4] Initial commit with task details for issue #52 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/IO/issues/52 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..2654d07 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/IO/issues/52 +Your prepared branch: issue-52-e758ca64 +Your prepared working directory: /tmp/gh-issue-solver-1757775929405 + +Proceed. \ No newline at end of file From 217221c87d0fd84b7aec2fc9ed2c30475f6cc59c Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 18:09:41 +0300 Subject: [PATCH 2/4] Rename directory parameter to path in DeleteAll methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename 'directory' parameter to 'path' in DeleteAll method overloads to follow .NET naming conventions for Directory.EnumerateFiles, and update XML documentation accordingly. This aligns with the standard .NET API parameter naming as specified in the Directory.EnumerateFiles documentation. πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- csharp/Platform.IO/FileHelpers.cs | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/csharp/Platform.IO/FileHelpers.cs b/csharp/Platform.IO/FileHelpers.cs index fd412a3..9bca9bc 100644 --- a/csharp/Platform.IO/FileHelpers.cs +++ b/csharp/Platform.IO/FileHelpers.cs @@ -199,51 +199,51 @@ public static void SetSize(string path, long size) } /// - /// Removes all files from the directory at the path . - /// УдаляСт всС Ρ„Π°ΠΉΠ»Ρ‹ ΠΈΠ· Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . + /// Removes all files from the directory at the path . + /// УдаляСт всС Ρ„Π°ΠΉΠ»Ρ‹ ΠΈΠ· Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . /// - /// + /// /// The path to the directory to be cleaned. /// ΠŸΡƒΡ‚ΡŒ ΠΊ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ для очистки. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DeleteAll(string directory) => DeleteAll(directory, "*"); + public static void DeleteAll(string path) => DeleteAll(path, "*"); /// - /// Removes files from the directory at the path according to the . - /// УдаляСт Ρ„Π°ΠΉΠ»Ρ‹ ΠΈΠ· Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ Π² соотвСствии с . + /// Removes files from the directory at the path . + /// УдаляСт Ρ„Π°ΠΉΠ»Ρ‹ ΠΈΠ· Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . /// - /// + /// /// The path to the directory to be cleaned. /// ΠŸΡƒΡ‚ΡŒ ΠΊ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ для очистки. /// /// - /// The search pattern for files to be deleted in the directory at the path . - /// Π¨Π°Π±Π»ΠΎΠ½ поиска для удаляСмых Ρ„Π°ΠΉΠ»ΠΎΠ² Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . + /// The search pattern for files to be deleted in the directory at the path . + /// Π¨Π°Π±Π»ΠΎΠ½ поиска для удаляСмых Ρ„Π°ΠΉΠ»ΠΎΠ² Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DeleteAll(string directory, string searchPattern) => DeleteAll(directory, searchPattern, SearchOption.TopDirectoryOnly); + public static void DeleteAll(string path, string searchPattern) => DeleteAll(path, searchPattern, SearchOption.TopDirectoryOnly); /// - /// Removes files from the directory at the path according to the and the . - /// УдаляСт Ρ„Π°ΠΉΠ»Ρ‹ ΠΈΠ· Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ Π² соотвСствии с ΠΈ . + /// Removes files from the directory at the path . + /// УдаляСт Ρ„Π°ΠΉΠ»Ρ‹ ΠΈΠ· Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . /// - /// + /// /// The path to the directory to be cleaned. /// ΠŸΡƒΡ‚ΡŒ ΠΊ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ для очистки. /// /// - /// The search pattern for files to be deleted in the directory at the path . - /// Π¨Π°Π±Π»ΠΎΠ½ поиска для удаляСмых Ρ„Π°ΠΉΠ»ΠΎΠ² Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . + /// The search pattern for files to be deleted in the directory at the path . + /// Π¨Π°Π±Π»ΠΎΠ½ поиска для удаляСмых Ρ„Π°ΠΉΠ»ΠΎΠ² Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ . /// /// - /// The value that determines whether to search only in the current the directory at the path , or also in all subdirectories. - /// Π—Π½Π°Ρ‡Π΅Π½ΠΈΠ΅ ΠΎΠΏΡ€Π΅Π΄Π΅Π»ΡΡŽΡ‰Π΅Π΅ ΠΈΡΠΊΠ°Ρ‚ΡŒ Π»ΠΈ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ Π² Ρ‚Π΅ΠΊΡƒΡ‰Π΅ΠΉ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ , ΠΈΠ»ΠΈ Ρ‚Π°ΠΊΠΆΠ΅ Π²ΠΎ всСх субдирСкториях. + /// The value that determines whether to search only in the current directory at the path , or also in all subdirectories. + /// Π—Π½Π°Ρ‡Π΅Π½ΠΈΠ΅ ΠΎΠΏΡ€Π΅Π΄Π΅Π»ΡΡŽΡ‰Π΅Π΅ ΠΈΡΠΊΠ°Ρ‚ΡŒ Π»ΠΈ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ Π² Ρ‚Π΅ΠΊΡƒΡ‰Π΅ΠΉ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ находящСйся ΠΏΠΎ ΠΏΡƒΡ‚ΠΈ , ΠΈΠ»ΠΈ Ρ‚Π°ΠΊΠΆΠ΅ Π²ΠΎ всСх субдирСкториях. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DeleteAll(string directory, string searchPattern, SearchOption searchOption) + public static void DeleteAll(string path, string searchPattern, SearchOption searchOption) { - foreach (var file in Directory.EnumerateFiles(directory, searchPattern, searchOption)) + foreach (var file in Directory.EnumerateFiles(path, searchPattern, searchOption)) { File.Delete(file); } From ac0aa4e6cb93c5f8e3601144e4e732bfc190198d Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 18:09:49 +0300 Subject: [PATCH 3/4] Update C++ FileHelpers to use path parameter in DeleteAll methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update parameter name from 'directory' to 'path' in C++ FileHelpers to match the C# implementation and .NET naming conventions. πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- cpp/Platform.IO/FileHelpers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/Platform.IO/FileHelpers.h b/cpp/Platform.IO/FileHelpers.h index e9401ba..b567c26 100644 --- a/cpp/Platform.IO/FileHelpers.h +++ b/cpp/Platform.IO/FileHelpers.h @@ -69,13 +69,13 @@ } } - public: static void DeleteAll(std::string directory) { DeleteAll(directory, "*"); } + public: static void DeleteAll(std::string path) { DeleteAll(path, "*"); } - public: static void DeleteAll(std::string directory, std::string searchPattern) { DeleteAll(directory, searchPattern, SearchOption.TopDirectoryOnly); } + public: static void DeleteAll(std::string path, std::string searchPattern) { DeleteAll(path, searchPattern, SearchOption.TopDirectoryOnly); } - public: static void DeleteAll(std::string directory, std::string searchPattern, SearchOption searchOption) + public: static void DeleteAll(std::string path, std::string searchPattern, SearchOption searchOption) { - foreach (auto file in Directory.EnumerateFiles(directory, searchPattern, searchOption)) + foreach (auto file in Directory.EnumerateFiles(path, searchPattern, searchOption)) { File.Delete(file); } From b3316be6631d5752acfd52dd9750e227d3971cae Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 18:10:36 +0300 Subject: [PATCH 4/4] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 2654d07..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/IO/issues/52 -Your prepared branch: issue-52-e758ca64 -Your prepared working directory: /tmp/gh-issue-solver-1757775929405 - -Proceed. \ No newline at end of file