Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Ferreyra <dean@octw.com>2020-09-04 17:25:31 +0300
committerDean Ferreyra <dean@octw.com>2020-09-04 17:25:31 +0300
commit3a66668e6ad6f8ed218f9226409fc64513670a3c (patch)
tree7beb0646cf0c41ad028be91b39f0f6cf4805233a /Duplicati/CommandLine
parentf6e79da78d09257340dddcb7e04264ae3b1901ff (diff)
Support globbing for "@" filters in "find" and "restore"
Remove unneeded calls to `ToList()`.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/Commands.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/CommandLine/Commands.cs b/Duplicati/CommandLine/Commands.cs
index dde5aa9e1..d83de888f 100644
--- a/Duplicati/CommandLine/Commands.cs
+++ b/Duplicati/CommandLine/Commands.cs
@@ -240,7 +240,7 @@ namespace Duplicati.CommandLine
/// equivalent of prefixing with "*/" so we search all folders.
/// </summary>
public static IEnumerable<string> PrefixArgsWithAsterisk(IEnumerable<string> argList) =>
- argList.Select(PrefixArgWithAsterisk).ToList();
+ argList.Select(PrefixArgWithAsterisk);
/// <summary>
/// For bare file names with no wildcards, replace with the
@@ -272,7 +272,7 @@ namespace Duplicati.CommandLine
/// so we restore contents in the folder.
/// </summary>
public static IEnumerable<string> SuffixArgsWithAsterisk(IEnumerable<string> argList) =>
- argList.Select(SuffixArgWithAsterisk).ToList();
+ argList.Select(SuffixArgWithAsterisk);
/// <summary>
/// For folders, replace with the equivalent of suffixing with "/*"