Use Path.Join instead of string.Join
This commit is contained in:
parent
df583e73c2
commit
38806740e1
@ -42,7 +42,7 @@ namespace FileManager
|
||||
|
||||
pathParts.Reverse();
|
||||
|
||||
return FileUtility.GetValidFilename(string.Join(Path.DirectorySeparatorChar, pathParts), IllegalCharacterReplacements, returnFirstExisting);
|
||||
return FileUtility.GetValidFilename(Path.Join(pathParts.ToArray()), IllegalCharacterReplacements, returnFirstExisting);
|
||||
}
|
||||
|
||||
private string replaceFileName(string filename, Dictionary<string,string> paramReplacements)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user