copy method

Future<void> copy(
  1. String oldPath,
  2. String newPath,
  3. bool overwrite, [
  4. CancelToken? cancelToken,
])

Copy a file / folder from A to B If copied the folder (A > B), it will copy all the contents of folder A to folder B. Some webdav services have been tested and found to delete the original contents of the B folder!!!

Implementation

Future<void> copy(String oldPath, String newPath, bool overwrite,
    [CancelToken? cancelToken]) {
  return this.c.wdCopyMove(this, oldPath, newPath, true, overwrite);
}