Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,8 @@ REPO_DIR_NAME = Path(urlparse(REPO_URL).path).stem
|
|
| 17 |
Repo.clone_from(f"https://{token}@github.com/{OWNER_REPO_NAME}", REPO_DIR_NAME, branch=BRANCH_NAME)
|
| 18 |
|
| 19 |
for item in Path(REPO_DIR_NAME).iterdir():
|
|
|
|
|
|
|
| 20 |
shutil.copytree(item, Path.cwd() / item.name, dirs_exist_ok=True) if item.is_dir() else shutil.copy2(item, Path.cwd())
|
| 21 |
|
| 22 |
def del_error_handler(func, path, exc_info):
|
|
|
|
| 17 |
Repo.clone_from(f"https://{token}@github.com/{OWNER_REPO_NAME}", REPO_DIR_NAME, branch=BRANCH_NAME)
|
| 18 |
|
| 19 |
for item in Path(REPO_DIR_NAME).iterdir():
|
| 20 |
+
if item.name in ['README.md']:
|
| 21 |
+
continue
|
| 22 |
shutil.copytree(item, Path.cwd() / item.name, dirs_exist_ok=True) if item.is_dir() else shutil.copy2(item, Path.cwd())
|
| 23 |
|
| 24 |
def del_error_handler(func, path, exc_info):
|