Guess filetype for files without extensions
Open
@nanxstats is already working on this.
Since Aug 9, 2021.
enhancement
- Dominant language
- R
- Stars
- 31
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
When evaluating file specifications to create file collections, we should follow this:
- If a file has a known extensions, mark it as text or binary based on the dictionary (implemented)
- Include files that do not have a file extension, and files with extensions not covered by the dictionary
- Guess if the file is (canonically) text, otherwise mark them as binary
- I'd prefer zlib's algorithm: https://github.com/madler/zlib/blob/master/doc/txtvsbin.txt
- If a file does not have any content, then mark it as binary
- Guess if the file is (canonically) text, otherwise mark them as binary
- Document this flow in the specification section
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.