Skip to content

Commit

Permalink
Added one more overloaded version of the FindFiles() method to the Fi…
Browse files Browse the repository at this point in the history
…leManager class.
  • Loading branch information
xvitaly committed Sep 6, 2024
1 parent b9c21b2 commit de16032
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions src/corelib/FileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ public static void RemoveFiles(List<string> FileNames)
/// Finds files in the specified list of directories that match the
/// specified file mask and adds them to the list. If allowed, the
/// list may also contain files, and if they exist, they will be
/// added to the list too.
/// Recursion can be explicitly enabled or disabled.
/// added to the list too. Recursion can be explicitly enabled or
/// disabled.
/// </summary>
/// <param name="SearchPaths">The list of directories and files for searching.</param>
/// <param name="SrcMask">File mask (wildcards are supported).</param>
Expand Down Expand Up @@ -276,9 +276,9 @@ private static List<string> FindFiles(List<string> SearchPaths, string SrcMask,
}

/// <summary>
/// Finds all files in the specified list of directories and adds them
/// to the list. The list can also contain files, and if they exist,
/// they will be added too.
/// Recursively finds all files in the specified list of directories and
/// adds them to the list. The list can also contain files, and if they
/// exist, they will be added too.
/// </summary>
/// <param name="SearchPaths">The list of directories and files for searching.</param>
/// <returns>The list of files with full paths.</returns>
Expand All @@ -288,7 +288,21 @@ public static List<string> FindFiles(List<string> SearchPaths)
}

/// <summary>
/// Finds all files in the specified directory and adds them to the list.
/// Recursively finds files in the specified list of directories that match
/// the specified file mask and adds them to the list. The list can also
/// contain files, and if they exist, they will be added too.
/// </summary>
/// <param name="SearchPaths">The list of directories and files for searching.</param>
/// <param name="SrcMask">File mask (wildcards are supported).</param>
/// <returns>The list of files with full paths.</returns>
public static List<string> FindFiles(List<string> SearchPaths, string SrcMask)
{
return FindFiles(SearchPaths, SrcMask, true, true);
}

/// <summary>
/// Recursively finds all files in the specified directory and adds them to
/// the list.
/// </summary>
/// <param name="SearchPath">Start directory.</param>
/// <returns>The list of files with full paths.</returns>
Expand Down

0 comments on commit de16032

Please sign in to comment.