parent
71192cc2ee
commit
48eca3f5af
19 changed files with 115 additions and 654 deletions
|
|
@ -16,7 +16,7 @@ namespace FileManager
|
|||
public string IllegalCharacterReplacements { get; set; }
|
||||
|
||||
/// <summary>Generate a valid path for this file or directory</summary>
|
||||
public LongPath GetFilePath(ReplacementCharacters replacements, bool returnFirstExisting = false)
|
||||
public LongPath GetFilePath(bool returnFirstExisting = false)
|
||||
{
|
||||
|
||||
string fileName = Template.EndsWith(Path.DirectorySeparatorChar) ? Template[..^1] : Template;
|
||||
|
|
@ -43,7 +43,7 @@ namespace FileManager
|
|||
|
||||
pathParts.Reverse();
|
||||
|
||||
return FileUtility.GetValidFilename(Path.Join(pathParts.ToArray()), replacements, returnFirstExisting);
|
||||
return FileUtility.GetValidFilename(Path.Join(pathParts.ToArray()), IllegalCharacterReplacements, returnFirstExisting);
|
||||
}
|
||||
|
||||
private string replaceFileName(string filename, Dictionary<string,string> paramReplacements)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue