Clone folder directory
I want to create a script to clone a folder from the directory “../x/A/” to “../y/A/” and remove files from the directory “../y/A/” that are not in “../x /A/”.
I wrote the delete part. Is it possible to optimize this somehow?
I would also like to know if there are ready-made solutions for what I want?
Creating an EmptyPath class compatible with pathlib – Inheritance, Composition, or Metaclass?
I’m working on a Python project initially coded with path.py 16.4
, where it was possible to create an empty Path object with Path()
. After migrating to pathlib
, this is no longer possible as Path()
now returns the current directory (.
).