Upgrade AAXClean.Codecs to 0.5.10 and fix #459
This commit is contained in:
parent
d0727b5a85
commit
7029409792
8 changed files with 57 additions and 45 deletions
|
|
@ -151,9 +151,9 @@ namespace FileManager
|
|||
/// <br/>- Perform <see cref="SaferMove"/>
|
||||
/// <br/>- Return valid path
|
||||
/// </summary>
|
||||
public static string SaferMoveToValidPath(LongPath source, LongPath destination, ReplacementCharacters replacements)
|
||||
public static string SaferMoveToValidPath(LongPath source, LongPath destination, ReplacementCharacters replacements, string extension = null)
|
||||
{
|
||||
var extension = Path.GetExtension(source);
|
||||
extension = extension ?? Path.GetExtension(source);
|
||||
destination = GetValidFilename(destination, replacements, extension);
|
||||
SaferMove(source, destination);
|
||||
return destination;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue