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

Package usage and documentation #45

Open
Praful932 opened this issue Jan 26, 2022 · 0 comments
Open

Package usage and documentation #45

Praful932 opened this issue Jan 26, 2022 · 0 comments

Comments

@Praful932
Copy link

Thanks for publishing this library, Creating this Issue to add some general usage which I didn't see in the README and had to refer the codebase to understand

  • The additional options needs to be passed in either as a dictionary or as a parameter to the sync function, For example to force create, the statement would look like - sync(source_path, dest_path, "sync", create = True)
  • Other additional options which involve regexes, It expects a list and the regex is a re.match not re.search so the regex search starts from the start, so for example if you wanted to only include files with extension .py, The statement would be something like
    sync(source_path, dest_path, "sync", create = True, only = [r".+?\.py"])
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