upscayl/common/decode-path.ts

6 lines
146 B
TypeScript

import path from "path";
export default function decodePath(filePath: string): string {
return path.normalize(decodeURIComponent(filePath));
}