-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I have my pattern to only allow copying of: pattern = r'.*.HiQ'. This works perfectly but I have: purge = True. My attempt is to make it where after the copy takes place, the file in the source is deleted but it doesnt remove it. Here is my snippet:
path = "C:\Users\wupqlm\Desktop\destination"
paths = "C:\Users\wupqlm\Desktop\source"
def file_copy(pathdest):
try:
sync(paths, path, 'sync', purge=True, twoway = True, only=pattern)
except:
print("Error: ")
Metadata
Metadata
Assignees
Labels
No labels