support for / filesystem source by largely eliminating DIR_SEP variable + renamed license for case

This commit is contained in:
Macho Philipovich
2016-01-12 16:03:20 -05:00
parent edcdf6e682
commit 19dca2b69b
6 changed files with 11 additions and 31 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ namespace UpdateVersionStamp
if (!string.IsNullOrEmpty(opt.ignorefilter))
filter = new Duplicati.Library.Utility.FilterExpression(opt.ignorefilter, false);
Func<string, bool> isFile = (string x) => !x.EndsWith(DIR_SEP);
Func<string, bool> isFile = (string x) => !x.EndsWith(DIR_SEP); // TODO: fix this so that when x=="/" (i.e. unix root folder), isFile returns true
var paths = Duplicati.Library.Utility.Utility.EnumerateFileSystemEntries(opt.sourcefolder, filter)
.Where(x => isFile(x) && FILEMAP.ContainsKey(Path.GetFileName(x)))