lcolonn commited on
Commit
b10d925
·
verified ·
1 Parent(s): 0450cdb

feat: remove regular files

Browse files
Files changed (1) hide show
  1. run_app.sh +1 -1
run_app.sh CHANGED
@@ -11,7 +11,7 @@ mkdir -p ${HF_DATASET_LOCAL_PATH}
11
  hf download ${HF_DATASET_REPO} --local-dir ${HF_DATASET_LOCAL_PATH} --repo-type dataset
12
 
13
  # Find all regular files (-type f) in the downloaded directory and its subdirectories, and delete them.
14
- find "${HF_DATASET_LOCAL_PATH}" -type f -delete
15
 
16
  if [ $? -eq 0 ]; then
17
  echo "Dataset downloaded successfully!"
 
11
  hf download ${HF_DATASET_REPO} --local-dir ${HF_DATASET_LOCAL_PATH} --repo-type dataset
12
 
13
  # Find all regular files (-type f) in the downloaded directory and its subdirectories, and delete them.
14
+ find "${HF_DATASET_LOCAL_PATH}" -maxdepth 1 -type f -delete
15
 
16
  if [ $? -eq 0 ]; then
17
  echo "Dataset downloaded successfully!"