Nf / Git
osmunphotography's picture
Create Git
2a7ba92 verified
raw
history blame contribute delete
441 Bytes
import git
# Clone the repository
repo_url = "https://github.com/lllyasviel/Fooocus.git"
repo_dir = "Fooocus"
git.Repo.clone_from(repo_url, repo_dir)
# Check if a specific file exists
file_to_check = "entry_with_update.py"
file_path = f"{repo_dir}/{file_to_check}"
if os.path.exists(file_path):
print(f"The file {file_to_check} exists in the repository.")
else:
print(f"The file {file_to_check} does not exist in the repository.")