(file: string)
| 18 | // Cleared in SSH targets provider during refresh |
| 19 | export const filesWritable: Map<string, boolean> = new Map<string, boolean>(); |
| 20 | async function isWritable(file: string): Promise<boolean> { |
| 21 | let cachedWritable: boolean | undefined = filesWritable.get(file); |
| 22 | if (cachedWritable === undefined) { |
| 23 | const writable: boolean = await pathAccessible(file, constants.W_OK); |
| 24 | filesWritable.set(file, writable); |
| 25 | cachedWritable = writable; |
| 26 | } |
| 27 | return cachedWritable; |
| 28 | } |
| 29 | |
| 30 | export class TargetLeafNode extends LabelLeafNode { |
| 31 | constructor(readonly name: string, readonly sshConfigHostInfo: ISshConfigHostInfo) { |
no test coverage detected