确保文件夹存在
This commit is contained in:
parent
545402617b
commit
51481055d6
@ -59,6 +59,7 @@ class MaxKBMinerUConfig(MinerUConfig):
|
|||||||
# File storage settings
|
# File storage settings
|
||||||
self.file_storage_type = os.getenv('MAXKB_STORAGE_TYPE', 'local') # local, s3, oss
|
self.file_storage_type = os.getenv('MAXKB_STORAGE_TYPE', 'local') # local, s3, oss
|
||||||
self.file_storage_path = os.getenv('MAXKB_STORAGE_PATH', '/opt/maxkb/storage')
|
self.file_storage_path = os.getenv('MAXKB_STORAGE_PATH', '/opt/maxkb/storage')
|
||||||
|
os.makedirs(self.file_storage_path, exist_ok=True)
|
||||||
self.file_storage_bucket = os.getenv('MAXKB_STORAGE_BUCKET')
|
self.file_storage_bucket = os.getenv('MAXKB_STORAGE_BUCKET')
|
||||||
|
|
||||||
# Model client settings
|
# Model client settings
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user