(file: string)
| 862 | } |
| 863 | |
| 864 | export async function allowExecution(file: string): Promise<void> { |
| 865 | if (process.platform !== 'win32') { |
| 866 | const exists: boolean = await checkFileExists(file); |
| 867 | if (exists) { |
| 868 | const isExec: boolean = await isExecutable(file); |
| 869 | if (!isExec) { |
| 870 | await chmodAsync(file, '755'); |
| 871 | } |
| 872 | } else { |
| 873 | getOutputChannelLogger().appendLine(""); |
| 874 | getOutputChannelLogger().appendLine(localize("warning.file.missing", "Warning: Expected file {0} is missing.", file)); |
| 875 | } |
| 876 | } |
| 877 | } |
| 878 | |
| 879 | export async function chmodAsync(path: fs.PathLike, mode: fs.Mode): Promise<void> { |
| 880 | return new Promise<void>((resolve, reject) => { |
nothing calls this directly
no test coverage detected