(pathName: string)
| 914 | } |
| 915 | |
| 916 | public static NormalizePath(pathName: string): string { |
| 917 | if (!pathName) { return pathName; } |
| 918 | if (os.platform() === 'win32') { |
| 919 | // Do this so path.normalize works properly |
| 920 | pathName = pathName.replace(/\//g, '\\'); |
| 921 | } else { |
| 922 | pathName = pathName.replace(/\\/g, '/'); |
| 923 | } |
| 924 | pathName = path.normalize(pathName); |
| 925 | if (os.platform() === 'win32') { |
| 926 | pathName = pathName.toLowerCase(); |
| 927 | } |
| 928 | return pathName; |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | function getProp(ary: any, name: string): any { |
no test coverage detected