New Issue: Filesystem module: copy vs. copyFile

19663, "jhh67", "Filesystem module: copy vs. copyFile", "2022-04-19T22:55:54Z"

The Filesystem module currently supports the copy and copyFile methods. They are similar, except that copyFile only copies the contents of the file whereas copy also copies the file permissions and optionally additional file metadata such as uid, gid, access time, and modify time. There are several options:

  1. Keep them as-is.
  2. Add a permissions flag to copy and delete copyFile.
  3. Eliminate the metadata and permissions flags and have different methods for the different combinations of things that are copied (contents, permissions, and metadata).