Skip to content

Purge doesnt remove files from source #33

@ENooteboom

Description

@ENooteboom

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions