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

Add exclude param #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add exclude param #1

wants to merge 1 commit into from

Conversation

guibog
Copy link

@guibog guibog commented Jan 6, 2015

I needed this because I am "force synching" folders already synched by btsync, which has a ".sync" hidden folder which should not be checked.

If it is not a proper PR for this project, please let me now.

@guibog
Copy link
Author

guibog commented Feb 25, 2015

Bump

@divVerent
Copy link
Contributor

Sorry for being so late, must have missed the notification.

The request looks good. I'll take care of it soon.

Have you already signed the CLA as per the Contributing paragraph in the README (https://github.com/google/adb-sync/blob/master/README.md)?

@mydongistiny
Copy link

This was the only thing missing for me too. For when I backup my internal storage I don't want to copy TWRP and some huge folders. Thank you for making this.

for f in file_iter:
excluded = False
for pat in excludes:
if fnmatch.fnmatch(f[0], pat):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if f[0] is right?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats correct, since its a tuple:

('/file/abc', posix.stat_result(st_mode=16877, st_ino=1, st_dev=0, st_nlink=1, st_uid=-2, st_gid=-2, st_size=None, st_atime=1528642980.0, st_mtime=1528642980.0, st_ctime=1528642980.0))

f[0] is the '/file/abc'

Razerban added a commit to Razerban/adb-sync that referenced this pull request Dec 16, 2019
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

Successfully merging this pull request may close these issues.

5 participants