copy method

FilePath copy (FilePath destDir)

Copy the the entity to the given destination. Return the newly created FilePath.

Implementation

FilePath copy(FilePath destDir) {
  _copyImpl(entity, destDir.asDirectory);
  return new FilePath(destDir).join(name);
}