Relative Content

Tag Archive for pythonpathlib

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?