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 19:54:33 +0300
committerDean Ferreyra <dean@octw.com>2020-09-04 19:54:33 +0300
commit5c2fb96f5f45990a3552ddfc3a4c248aecbeabec (patch)
treee0cbbc9ccd75b3896fdbce1f07ebe13cd61b8495 /Duplicati/CommandLine
parent3a66668e6ad6f8ed218f9226409fc64513670a3c (diff)
Support globbing for "@" filters in "find" and "restore"
Change some comments.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/Commands.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/Duplicati/CommandLine/Commands.cs b/Duplicati/CommandLine/Commands.cs
index d83de888f..37fbf5a5d 100644
--- a/Duplicati/CommandLine/Commands.cs
+++ b/Duplicati/CommandLine/Commands.cs
@@ -236,15 +236,15 @@ namespace Duplicati.CommandLine
}
/// <summary>
- /// For bare file names with no wildcards, replace with the
- /// equivalent of prefixing with "*/" so we search all folders.
+ /// For bare file names with no wildcards, replace argument with
+ /// the equivalent of prefixing with "*/" so we search all folders.
/// </summary>
public static IEnumerable<string> PrefixArgsWithAsterisk(IEnumerable<string> argList) =>
argList.Select(PrefixArgWithAsterisk);
/// <summary>
- /// For bare file names with no wildcards, replace with the
- /// equivalent of prefixing with "*/" so we search all folders.
+ /// For bare file names with no wildcards, return argument with
+ /// the equivalent of prefixing with "*/" so we search all folders.
/// </summary>
private static string PrefixArgWithAsterisk(string arg)
{
@@ -268,15 +268,15 @@ namespace Duplicati.CommandLine
}
/// <summary>
- /// For folders, replace with the equivalent of suffixing with "/*"
- /// so we restore contents in the folder.
+ /// For folders, replace argument with the equivalent of suffixing
+ /// with "*" so we restore contents in the folder.
/// </summary>
public static IEnumerable<string> SuffixArgsWithAsterisk(IEnumerable<string> argList) =>
argList.Select(SuffixArgWithAsterisk);
/// <summary>
- /// For folders, replace with the equivalent of suffixing with "/*"
- /// so we restore contents in the folder.
+ /// For folders, return argument with the equivalent of suffixing
+ /// with "*" so we restore contents in the folder.
/// </summary>
private static string SuffixArgWithAsterisk(string arg)
{
@@ -285,12 +285,12 @@ namespace Duplicati.CommandLine
if (endsWithSeparator && arg.StartsWith("@", StringComparison.Ordinal))
{
- // Convert to Regexp filter and suffix with "/.*"
+ // Convert to Regexp filter and suffix with ".*"
return $"[{Regex.Escape(arg.Substring(1))}.*]";
}
else if (endsWithSeparator && !containsWildcards && !arg.StartsWith("[", StringComparison.Ordinal))
{
- // Suffix with "/*"
+ // Suffix with "*"
return arg + "*";
}
else