copy method

FilePath copy(
  1. 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 FilePath(destDir).join(name);
}