{"id":19570496,"url":"https://github.com/ferrata/file-scanner-tutorial","last_synced_at":"2025-11-19T20:03:14.956Z","repository":{"id":211775680,"uuid":"729705916","full_name":"ferrata/file-scanner-tutorial","owner":"ferrata","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-11T09:46:17.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T01:32:57.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/ferrata.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}},"created_at":"2023-12-10T04:40:56.000Z","updated_at":"2024-05-11T09:46:14.000Z","dependencies_parsed_at":"2023-12-10T20:36:31.171Z","dependency_job_id":null,"html_url":"https://github.com/ferrata/file-scanner-tutorial","commit_stats":null,"previous_names":["ferrata/file-scanner-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ferrata/file-scanner-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Ffile-scanner-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Ffile-scanner-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Ffile-scanner-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Ffile-scanner-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferrata","download_url":"https://codeload.github.com/ferrata/file-scanner-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferrata%2Ffile-scanner-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285319005,"owners_count":27151474,"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","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-11T06:15:19.569Z","updated_at":"2025-11-19T20:03:14.919Z","avatar_url":"https://github.com/ferrata.png","language":"C#","readme":"# File scanner\n\n## Original task\n\nCreate a program that will take a directory path as input, which\nAfter taking the path, it will scan all files from the folder.\nWill collect information about files - Id, name, size, full path.\nThat data will be added to the database (One table with the mentioned\ncolumns: Id, name, size, full path).\n\n### Upgrade the app to now scan and visit.\n\nAfter finding a folder, it will go inside it to scan files further (if\nit finds another folder in the folder, it will go inside it).\nEvery time a folder is found, it will save its name and created Id.\nEach file found must have the ID of the folder it belongs to.\n\nSuggested database structure:\n\n![image](./assets/suggested-db-structure.png)\n\n### Recursion\n\nBonus point if you have a database structure where you can create\nsubfolders of subfolders and trace the entire path from the root\nfolder to the file.\n\n## Solution\n\nWe'll solve it in 3 stages:\n\n### Stage 1\n\nWrite a simple file scanner that will scan a given directory, print out information about files. See details in [stage-1](./stage-1/README.md).\n\n### Stage 2\n\nExpand the file scanner to also scan subdirectories, still just printing out information about files. See details in [stage-2](./stage-2/README.md).\n\n### Stage 3\n\nCreate a database, and change the file scanner to save information about files to the database. See details in [stage-3](./stage-3/README.md).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferrata%2Ffile-scanner-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferrata%2Ffile-scanner-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferrata%2Ffile-scanner-tutorial/lists"}