upscayl/common/decode-path.ts

6 lines
146 B
TypeScript
Raw Permalink Normal View History

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