CopyEntity constructor

CopyEntity(
  1. EntityNode parent,
  2. String relative
)

Implementation

CopyEntity(this.parent, String relative) {
  //relative = _path.relative(relative, from: parent.path);
  basename = p.basename(relative);
  _parts = List.from(parent.parts!);
  if (relative != utilsCurrentFolderPart) {
    _parts!.addAll(contextPathSplit(fs.path, relative));
  }
  _sub = fs.path.join(parent.sub!, relative);
}