diff --git a/hands_on/ignore_file.py b/hands_on/ignore_file.py new file mode 100644 index 0000000..c9e2c09 --- /dev/null +++ b/hands_on/ignore_file.py @@ -0,0 +1,16 @@ +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", exist_ok=True) + os.chdir("stuff") + init(verbose) + + create_or_update_file("keep.txt", "good stuff\n") + create_or_update_file("temp.txt", "temp stuff\n") + create_or_update_file("file1.tmp", "more temp stuff\n") + create_or_update_file("file2.tmp", "even more temp stuff\n") \ No newline at end of file