-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extract folder scanning module #212
base: master
Are you sure you want to change the base?
Conversation
@@ -14,7 +14,7 @@ | |||
EnvironmentEncodingError, | |||
InvalidArgument, | |||
IncompleteSync, | |||
UnSyncableFilename, | |||
UnsupportedFilename, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there should be a v2 test which makes sure we return UnSyncableFilename
in v2
@@ -447,8 +447,8 @@ def test_multiple_versions(self): | |||
|
|||
self.assertEqual( | |||
[ | |||
"B2SyncPath(inner/a.txt, [('a2', 2000, 'upload'), ('a1', 1000, 'upload')])", | |||
"B2SyncPath(inner/b.txt, [('b2', 1999, 'upload'), ('b1', 1001, 'upload')])" | |||
"B2Path(inner/a.txt, [('a2', 2000, 'upload'), ('a1', 1000, 'upload')])", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be kept for v0, v1 and v2
from b2sdk.scan.folder import AbstractFolder | ||
from b2sdk.scan.folder import B2Folder | ||
from b2sdk.scan.folder import LocalFolder | ||
from b2sdk.scan.folder_parser import parse_folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in v2 both parse_sync_folder
and parse_folder
should be available and there should be a test that makes sure we have it
Co-authored-by: Paweł Polewicz <[email protected]>
I'm not sure about this.
![Screenshot_2022-05-18_01-41-44](https://user-images.githubusercontent.com/73276794/168924150-67e41608-58ad-4756-bda7-8ee69d6422d2.jpg)
B2Path
andB2SyncPath
are aliases, but string representation changed, is it a backwards-incompatible change?