{"id":24021157,"url":"https://github.com/zipcodecore/python8ex","last_synced_at":"2025-06-16T06:34:11.093Z","repository":{"id":147838220,"uuid":"470306392","full_name":"ZipCodeCore/Python8Ex","owner":"ZipCodeCore","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-15T19:37:30.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T12:41:24.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZipCodeCore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-15T19:37:29.000Z","updated_at":"2022-03-15T19:37:34.000Z","dependencies_parsed_at":"2023-04-06T06:47:31.508Z","dependency_job_id":null,"html_url":"https://github.com/ZipCodeCore/Python8Ex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPython8Ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPython8Ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPython8Ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipCodeCore%2FPython8Ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZipCodeCore","download_url":"https://codeload.github.com/ZipCodeCore/Python8Ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766672,"owners_count":19854114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-08T12:39:31.412Z","updated_at":"2025-02-25T23:47:03.712Z","avatar_url":"https://github.com/ZipCodeCore.png","language":"Python","readme":"# Part 8\n\n## Accompanying resources\n* Slide deck: https://zipcoder.github.io/reveal-slides.data-engineering/zcw_content/python/fundamentals-part8.html\n\n## Exercise 1\n\n### Prep work\n\nCreate a file in the same directory as this file. Change permissions so that the file is not accessible. \n```\ntouch locked_out_file.txt\nchmod 000 locked_out_file.txt\n```\n\n### Part A \n\n* Open the program *file_reader.py*.\n* Carefully read through the comments and the code.\n\n### Part B\n\n* Open the test class *test_file_reader.py*.\n* Execute each test in debug mode to reinforce the flow of each scenario.\n\n\n\n## Exercise 2\n\nCreate a program called *tree.py*\n\nGiven a file path (absolute or relative), the program should write to a file all of the contents of the directory and the child directories bellow it.\nThe output file should look something like this:\n\n```python\n./file1.py\n./file2.py\n./dir1/file1_in_dir1.txt\n./dir1/file2_in_dir1.txt\n./dir3/file1_in_dir3.txt\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzipcodecore%2Fpython8ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzipcodecore%2Fpython8ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzipcodecore%2Fpython8ex/lists"}