2 ms·
I rarely see files with incorrect file extensions outside of collisions and user error? I don’t see any downside apart from extensionless files like shell scri
by hsbauauvhabzb 6y ago
I rarely see files with incorrect file extensions outside of collisions and user error?
I don’t see any downside apart from extensionless files like shell scripts with the executable flag set, shebang, and no file extension which could also be solved.
Edit: and if comprehensive correctness was truly desired, file magic could make a better guess, but that would be overkill imo.
- ori_b 6y agoWhat's a '.m' file? Matlab, Objective-C, or Mathematica?
- staticautomatic 6y agoIt’s an archive hiding in plain sight.
- hsbauauvhabzb 6y agoWhichever is most common. Alternatively, use file magic to determine type in cases of collision, or do nothing (75+% of devs wouldn’t use these).