Remove unnecessary method overload.
This commit is contained in:
@@ -141,7 +141,7 @@ namespace Duplicati.Library.Utility
|
||||
/// <returns>A list of the full paths</returns>
|
||||
public static IEnumerable<string> EnumerateFolders(string basepath)
|
||||
{
|
||||
return EnumerateFolders(basepath, null);
|
||||
return EnumerateFileSystemEntries(basepath).Where(x => x.EndsWith(Util.DirectorySeparatorString, StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -167,18 +167,6 @@ namespace Duplicati.Library.Utility
|
||||
return EnumerateFileSystemEntries(basepath, filter).Where(x => !x.EndsWith(Util.DirectorySeparatorString, StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a list of folder names found in the given folder.
|
||||
/// The search is recursive.
|
||||
/// </summary>
|
||||
/// <param name="basepath">The folder to look in</param>
|
||||
/// <param name="filter">The filter to apply.</param>
|
||||
/// <returns>A list of the full paths</returns>
|
||||
public static IEnumerable<string> EnumerateFolders(string basepath, IFilter filter)
|
||||
{
|
||||
return EnumerateFileSystemEntries(basepath, filter).Where(x => x.EndsWith(Util.DirectorySeparatorString, StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a list of all files and subfolders found in the given folder.
|
||||
/// The search is recursive.
|
||||
|
||||
Reference in New Issue
Block a user