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

Extract folder scanning module #212

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Extract folder scanning module #212

wants to merge 17 commits into from

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

CHANGELOG.md Outdated Show resolved Hide resolved
b2sdk/v2/sync.py Show resolved Hide resolved
b2sdk/scan/__init__.py Outdated Show resolved Hide resolved
b2sdk/scan/exception.py Show resolved Hide resolved
@@ -14,7 +14,7 @@
EnvironmentEncodingError,
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

b2sdk/sync/report.py Outdated Show resolved Hide resolved
b2sdk/sync/action.py Show resolved Hide resolved
b2sdk/scan/folder.py Outdated Show resolved Hide resolved
@@ -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')])",

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.

2 participants