CopyEntity constructor
CopyEntity(
- EntityNode parent,
- 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);
}