{"id":18876327,"url":"https://github.com/carlosulisesochoa/subdirectory-file-extractor-powershell","last_synced_at":"2026-04-30T19:32:31.969Z","repository":{"id":156836364,"uuid":"633175154","full_name":"CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell","owner":"CarlosUlisesOchoa","description":"PowerShell script that moves all the files from subdirectories to the root directory","archived":false,"fork":false,"pushed_at":"2023-05-01T22:58:18.000Z","size":198,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T19:37:37.806Z","etag":null,"topics":["powershell","script","scripting","subdirectory-file-extractor","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CarlosUlisesOchoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-27T00:13:40.000Z","updated_at":"2024-11-12T00:21:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e4c5db7-ff2f-434b-ad53-816432a02682","html_url":"https://github.com/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosUlisesOchoa%2FSubdirectory-file-extractor-PowerShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosUlisesOchoa%2FSubdirectory-file-extractor-PowerShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosUlisesOchoa%2FSubdirectory-file-extractor-PowerShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosUlisesOchoa%2FSubdirectory-file-extractor-PowerShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarlosUlisesOchoa","download_url":"https://codeload.github.com/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarlosUlisesOchoa%2FSubdirectory-file-extractor-PowerShell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["powershell","script","scripting","subdirectory-file-extractor","windows"],"created_at":"2024-11-08T06:12:27.298Z","updated_at":"2026-04-30T19:32:31.952Z","avatar_url":"https://github.com/CarlosUlisesOchoa.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subdirectory File Extractor\n\nSubdirectory File Extractor is a PowerShell script that moves all the files from subdirectories to the root directory, while preventing duplicates by renaming them with the parent directory name.\n\n\u003cbr/\u003e\n\n## Table of Contents\n\n- [System Requirements](#system-requirements)\n- [Usage](#usage)\n- [Result](#result)\n- [License](#license)\n- [About developer](#about-developer)\n\n\u003cbr/\u003e\n\n## System Requirements\n\n- Windows OS (tested on Windows 10 and 11)\n- PowerShell 5.1 or later\n\n\u003cbr/\u003e\n\n## Usage\n\n1. [Download](https://raw.githubusercontent.com/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell-/main/files-extractor.ps1) the `files-extractor.ps1` script.\n2. Save the script to a directory on your computer.\n3. Open PowerShell and navigate to the directory where the script is saved.\n4. Run the script with the `-d` parameter and specify the directory\n\n\u003cbr/\u003e\n\nExample:\n\n\u003cbr/\u003e\n\nPowerShell:\n```PowerShell\n.\\files-extractor.ps1 -d \"C:\\Shane\\my-root-dir\"\n```\n\n\u003cbr/\u003e\n\n## Result\n\n\u003cbr/\u003e\n\n**Before:**\n\u003cbr/\u003e\n\n\u003cimg alt=\"Image 1\" src=\"https://github.com/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell-/blob/main/sample-images/before.jpg?raw=true\" width=\"600\" /\u003e\n\n\u003cbr/\u003e\n\n**After:**\n\u003cbr/\u003e\n\n\u003cimg alt=\"Image 2\" src=\"https://github.com/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell-/blob/main/sample-images/after.jpg?raw=true\" width=\"600\" /\u003e\n\n\u003cbr/\u003e\n\n## License\n\nThis project is released under the [MIT License](LICENSE).\n\n\u003cbr/\u003e\n\n## About developer\n\nVisit my web [Carlos Ochoa](https://carlos8a.com)\n\n\u003cbr/\u003e\n\n---\n\n**Note:** If you encounter any issues with the script, please report them [here](https://github.com/CarlosUlisesOchoa/Subdirectory-file-extractor-PowerShell/issues). Contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosulisesochoa%2Fsubdirectory-file-extractor-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosulisesochoa%2Fsubdirectory-file-extractor-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosulisesochoa%2Fsubdirectory-file-extractor-powershell/lists"}