b2sdk.sync.folder_parser.parse_sync_folder(folder_name, api)[source]

Take either a local path, or a B2 path, and returns a Folder object for it.

B2 paths look like: b2://bucketName/path/name. The ‘//’ is optional, because the previous sync command didn’t use it.

Anything else is treated like a local folder.

  • folder_name (str) – a name of the folder, either local or remote

  • api (b2sdk.api.B2Api) – an API object