On 10/18/22, Todd <toddrjen@gmail.com> wrote:
How is it any less of a "path operation" than moving files, reading and writing files, making directories, and deleting files?
Path-related operations involve creating, linking, symlinking, and listing directories and files, and peripherally also accessing file metadata such as size, timestamps, attributes, and permissions (i.e. filesystem indexing and bookkeeping). Reading and writing are I/O data operations on the contents of files. Copying a file is a path operation in that a new file gets created in the filesystem, but it's primarily an I/O operation, as are the read_text(), read_bytes(), write_text() and write_bytes() methods of Path objects. The ship sailed a long time ago. Path objects support I/O.