PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/mem-fs-editor/lib/actions

Просмотр файла: read.js

'use strict';

module.exports = function (filepath, options) {
  options = options || { raw: false };
  const file = this.store.get(filepath);

  if (file.contents === null) {
    if ('defaults' in options) {
      return options.defaults;
    }

    throw new Error(filepath + " doesn't exist");
  }

  return options.raw ? file.contents : file.contents.toString();
};

Выполнить команду


Для локальной разработки. Не используйте в интернете!