nl_tokens: Check if a Webstorm . exe exists in a given windows program files directory .
pl_tokens: function resolveJetbrainsExe ( jetbrainsDirectory ) { var exists = <mask> ; var webstormInstallPaths = io . resolveDirMatches ( jetbrainsDirectory , / ^WebStorm\s*[.\d]+$ / ) ; // Check that the Webstorm folder have a bin folder, empty folders are a known issue. for ( var j = 0 ; j < webstormInstallPaths . length ; j ++ ) { var webstormPath = [ jetbrainsDirectory , webstormInstallPaths [ j ] , 'bin' ] ; var resolvedWebstorm = resolveMaxedPath ( webstormPath ) ; if ( resolvedWebstorm === null ) break ; exists = path . resolve ( resolvedWebstorm . join ( path . sep ) , 'Webstorm.exe' ) ; if ( fs . existsSync ( exists ) ) { return exists ; } } return exists ; }