import { __exports as entry } from '../../../../../../../../_virtual/entry2.mjs';
import '../../utils/index.mjs';
import { __exports as utils$1 } from '../../../../../../../../_virtual/index.mjs';

Object.defineProperty(entry, "__esModule", {
  value: true
});
const utils = utils$1;
class EntryTransformer {
  constructor(_settings) {
    this._settings = _settings;
  }
  getTransformer() {
    return entry => this._transform(entry);
  }
  _transform(entry) {
    let filepath = entry.path;
    if (this._settings.absolute) {
      filepath = utils.path.makeAbsolute(this._settings.cwd, filepath);
      filepath = utils.path.unixify(filepath);
    }
    if (this._settings.markDirectories && entry.dirent.isDirectory()) {
      filepath += '/';
    }
    if (!this._settings.objectMode) {
      return filepath;
    }
    return Object.assign(Object.assign({}, entry), {
      path: filepath
    });
  }
}
entry.default = EntryTransformer;
