Filtering out Pipe Symbol in file names
updated sanitiseFileName to include the pipe symbol as this character is not allowed on windows, the error thast it currently throws is: {"errno":-4058,"code":"ENOENT","syscall":"open","path":"K:\\MediaDwn\\Is It Wrong to Try to Pick Up Girls in a Dungeon_\\Is It Wrong to Try to Pick Up Girls in a Dungeon_ - s01e01 - Bell Cranel | Adventurer - [CrunchyRoll].ass"}
This commit is contained in:
parent
2aa71832b3
commit
da0fb17015
@ -66,7 +66,7 @@ function fileExist(path: string)
|
|||||||
|
|
||||||
function sanitiseFileName(str: string)
|
function sanitiseFileName(str: string)
|
||||||
{
|
{
|
||||||
return str.replace(/[\/':\?\*"<>\\\.]/g, '_');
|
return str.replace(/[\/':\?\*"<>\\\.\|]/g, '_');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user