Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
X-Pipe
/
flash
like
0
Sleeping
App
Files
Files
Community
5
Fetching metadata from the HF Docker repository...
main
flash
/
llama
/
utils.py
Nick Chen Zhu
first edition
257bc0d
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
149 Bytes
import
os
def
is_local_storage_files_ready
(
persist_dir:
str
) ->
bool
:
return
os.path.exists(persist_dir)
and
len
(os.listdir(persist_dir)) !=
0