Skip to content

Conversation

@agoncharov-reef
Copy link

I'm not sure about this. B2Path and B2SyncPath are aliases, but string representation changed, is it a backwards-incompatible change?
Screenshot_2022-05-18_01-41-44

InvalidArgument,
IncompleteSync,
UnSyncableFilename,
UnsupportedFilename,

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

[
"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')])",

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

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

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.

3 participants