FilePathExists()

/**
 * Проверяет существует ли файл (или директория) по указанному пути.
 * @param  {String} path путь к файлу
 * @return {Boolean}
 */
function FilePathExists(path) {...}

// Пример
FilePathExists(UrlToFilePath('x-local://wt/web/plugins/akismet/plugin-config.json'));
// true

results matching ""

    No results matching ""