You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: ")
The text was updated successfully, but these errors were encountered: