kemmlowww's picture
download
raw
400 Bytes
import os
from . import BASE_FOLDER
storage = BASE_FOLDER
def reset():
global storage
storage = BASE_FOLDER
def set(path: str):
global storage
storage = os.path.join(BASE_FOLDER, path)
try:
os.mkdir(storage)
except FileExistsError:
pass
def getPath() -> str:
return storage.replace(BASE_FOLDER, "", 1) or "/"
def get() -> str:
return storage

Xet Storage Details

Size:
400 Bytes
·
Xet hash:
d25cb5962d5501a2cd1a2f8263130d4d5ad48c90dccf902c027c2484519e6c62

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.