From 00a83b3c95fcded6101bc3b2e12ba7e480f3f2a2 Mon Sep 17 00:00:00 2001 From: vinoyang Date: Mon, 23 Sep 2024 21:08:53 +0800 Subject: [PATCH] Disable version_aware feature (#117) --- tosfs/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tosfs/core.py b/tosfs/core.py index b2c1fb3..d2c23dc 100644 --- a/tosfs/core.py +++ b/tosfs/core.py @@ -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 @@ -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