Skip to content

Commit

Permalink
Fixed some comments and inline documentation in DetectFilesForCleanup…
Browse files Browse the repository at this point in the history
…() private method of the FrmRmWrk class.
  • Loading branch information
xvitaly committed Sep 1, 2024
1 parent ab314cb commit b6020e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/srcrepair/FrmRmWrk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ private List<string> AddDirectoriesToList(string CleanDir)
}

/// <summary>
/// Gets full list of files for deletion.
/// Gets the full list of files for deletion.
/// </summary>
/// <param name="CleanDirs">List of directories for cleanup.</param>
/// <returns>List of files for deletion.</returns>
/// <param name="CleanDirs">The list of directories for cleanup.</param>
/// <returns>The list of files for deletion.</returns>
private List<string> DetectFilesForCleanup(List<string> CleanDirs)
{
// Generating an empty list for storing results...
// Generating an empty list for storing result...
List<string> Result = new List<string>();

// Expanding every directory from source list...
// Expanding every directory from the source list...
foreach (string CleanCnd in CleanDirs)
{
// Checking if directory exists...
// Checking for directory existence...
if (Directory.Exists(CleanCnd))
{
Result.AddRange(AddFilesToList(CleanCnd));
Result.AddRange(AddDirectoriesToList(CleanCnd));
}
else
{
// If directory does not exists, checking for file with the same name...
// If directory does not exist, checking for the file with the same name...
if (File.Exists(CleanCnd))
{
Result.Add(CleanCnd);
Expand Down

0 comments on commit b6020e5

Please sign in to comment.