Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge doesnt remove files from source #33

Open
ENooteboom opened this issue Oct 7, 2020 · 0 comments
Open

Purge doesnt remove files from source #33

ENooteboom opened this issue Oct 7, 2020 · 0 comments

Comments

@ENooteboom
Copy link

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: ")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant