import os import shutil PATH = os.path.join(os.environ['HF_CHECKPOINT'],'LoRA/upload') # Get a list of all files in the source directory files = os.listdir(PATH) # Copy each file to the current directory for file in files: shutil.copy(os.path.join(PATH, file), './')