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

Verbose sync_folder_to_container #250

Open
mwidman opened this issue Nov 18, 2013 · 1 comment
Open

Verbose sync_folder_to_container #250

mwidman opened this issue Nov 18, 2013 · 1 comment

Comments

@mwidman
Copy link

mwidman commented Nov 18, 2013

This is a feature request.

It would be nice if there was a way to make sync_folder_to_container verbose about what it is doing. Mostly, this is for looking at logs after the fact and confirming that yes, it did copy all of the files that were passed it; or, it skipped some; etc.

I realize that pyrax tends to rely on the user of this library to perform these type of functions but since sync_folder_to_container encapsulates it's logic it is a bit more difficult. Prehaps, if not providing logging, could the method provide a list of the files it intended to upload and the ones that it did? Or a dictionary like { "total": 100, "uploaded": 95, "skipped": 5 } ?

@EdLeafe
Copy link
Contributor

EdLeafe commented Nov 18, 2013

That's a great suggestion – maybe mimic what rsync does with the -v and -vv options?

mlilius added a commit to mlilius/pyrax that referenced this issue Apr 18, 2014
Added the ability to specify a prefix to be added to the object name during checking and uploading during a sync

Sped up sync_folder_to_container by having it pull down a list of objects all at once to use to compare against instead of checking once for each file.
mlilius added a commit to mlilius/pyrax that referenced this issue Apr 18, 2014
Added the ability to specify a prefix to be added to the object name during checking and uploading during a sync

Sped up sync_folder_to_container by having it pull down a list of objects all at once to use to compare against instead of checking once for each file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants