Skip to content

Commit

Permalink
Disable version_aware feature (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua authored Sep 23, 2024
1 parent f26fe49 commit 00a83b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def __init__(
WARN-level logs are printed.
version_aware : bool, optional
Whether the filesystem is version aware (default is False).
Currently, not been supported, please DO NOT set to True.
credentials_provider : object, optional
The credentials provider for the TOS service.
default_block_size : int, optional
Expand Down Expand Up @@ -199,6 +200,9 @@ def __init__(
enable_verify_ssl=False,
disable_encoding_meta=True,
)
if version_aware:
raise ValueError("Currently, version_aware is not supported.")

self.version_aware = version_aware
self.default_block_size = (
default_block_size or FILE_OPERATION_READ_WRITE_BUFFER_SIZE
Expand Down

0 comments on commit 00a83b3

Please sign in to comment.