Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions hands_on/ignore_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os

from exercise_utils.file import create_or_update_file
from exercise_utils.git import init

__requires_git__ = True
__requires_github__ = False


def download(verbose: bool):
os.makedirs("stuff")
os.chdir("stuff")
init(verbose)
create_or_update_file("keep.txt", "good stuff")
create_or_update_file("temp.txt", "temp stuff")
create_or_update_file("file1.tmp", "more temp stuff")
create_or_update_file("file2.tmp", "even more temp stuff")