function fileExistsSync()

in vscode-extension/src/platform.ts [481:490]


function fileExistsSync(filePath: string): boolean {
    try {
        // This will throw if the path does not exist,
        // and otherwise returns a value that we don't care about
        fs.lstatSync(filePath);
        return true;
    } catch {
        return false;
    }
}