{"id":42356028,"url":"https://github.com/buonzz/filestosql","last_synced_at":"2026-01-27T16:34:27.701Z","repository":{"id":57235892,"uuid":"172226573","full_name":"buonzz/filestosql","owner":"buonzz","description":"Recursively Crawl files in a folder and generate SQL script to easily load the file list to a  MySQL database","archived":false,"fork":false,"pushed_at":"2019-02-24T13:45:08.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T16:56:40.135Z","etag":null,"topics":["cms","discovery","filesystem","tools"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/filestosql","language":"JavaScript","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/buonzz.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}},"created_at":"2019-02-23T14:56:17.000Z","updated_at":"2020-12-27T19:42:35.000Z","dependencies_parsed_at":"2022-08-23T16:20:15.812Z","dependency_job_id":null,"html_url":"https://github.com/buonzz/filestosql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buonzz/filestosql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buonzz%2Ffilestosql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buonzz%2Ffilestosql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buonzz%2Ffilestosql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buonzz%2Ffilestosql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buonzz","download_url":"https://codeload.github.com/buonzz/filestosql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buonzz%2Ffilestosql/sbom","scorecard":{"id":258484,"data":{"date":"2025-08-11","repo":{"name":"github.com/buonzz/filestosql","commit":"a333d0cc13ffc3f4850890fba7ccd6d5197e904b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T10:13:09.772Z","repository_id":57235892,"created_at":"2025-08-17T10:13:09.772Z","updated_at":"2025-08-17T10:13:09.772Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":["cms","discovery","filesystem","tools"],"created_at":"2026-01-27T16:34:27.206Z","updated_at":"2026-01-27T16:34:27.689Z","avatar_url":"https://github.com/buonzz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Files to SQL\n\nA ClI (command line interface) tool to get a listing of all files inside a folder (and its subfolders) and generate a SQL file so you can easily analyze it using standard SQL queries.\n\n\n### Usage\n\nGo to the folder which you want to generate the sql and then execute:\n```\nnpx filestosql\n```\nit will then generate a \u003ccurrent folder\u003e.sql in the current directory.\n    \nYou can also specify the target folder and output file via command line arguments\n\n```\nnpx filestosql --folder=/path/to/folder/to/crawl --output=path/to/sql/file.sql\n```\n   \nYou can also install it globally if you need to use it repetitively\n```\nnpm install -g filestosql\n```\n\n\n### Using the generated SQL file\n\nthe entire purpose of the sql file is so that you can load that into your MySQL database. You can then query the database for your reporting needs.\n\nfor example:\n```\nmysql -u user -p  dbname -h localhost \u003c path/to/sql/file.sql\n```\n\nmake sure you have the following schema in your mysql database\n\n```\nCREATE TABLE IF NOT EXISTS files (\n    id INT AUTO_INCREMENT,\n    filename VARCHAR(255) NOT NULL,\n    filepath VARCHAR(500) NOT NULL,\n    dirname VARCHAR(255) NOT NULL,\n    extension VARCHAR(255) NOT NULL,\n    content_hash VARCHAR(255) DEFAULT NULL,\n    content_size VARCHAR(255) DEFAULT NULL,\n    file_type VARCHAR(50) DEFAULT NULL,\n    tags TEXT DEFAULT NULL,\n    last_indexed BIGINT DEFAULT NULL,\n    UNIQUE KEY unique_filepath (filepath),\n    PRIMARY KEY (id)\n)  ENGINE=INNODB;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuonzz%2Ffilestosql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuonzz%2Ffilestosql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuonzz%2Ffilestosql/lists"}