export function filterInvalidPath(path: string) { const reg = new RegExp('[\\\\/:*?"<>|]', "g"); return path.replace(reg, "").replace("\n", ""); }