filetype.py icon indicating copy to clipboard operation
filetype.py copied to clipboard

XLS Support

Open mishu- opened this issue 4 years ago • 2 comments

Is it doable to also check for XLS?

mishu- avatar May 26 '20 06:05 mishu-

Yes, it is. It was already implemented in the Go port of this package: https://github.com/h2non/filetype#documents

PR would be very welcome!

h2non avatar May 26 '20 10:05 h2non

Hi @h2non The magic number of all the office documents are same how will I distinguish between doc, xls, and ppt file. I have also checked the https://github.com/file/file but that was tough for me to understand.``

Word Document | .doc | D0 CF 11 E0 A1 B1 1A E1
Excel Document | .xls | D0 CF 11 E0 A1 B1 1A E1
PowerPoint Document | .ppt | D0 CF 11 E0 A1 B1 1A E1
Visio Document | .vsd | D0 CF 11 E0 A1 B1 1A E1

Agent-Hellboy avatar Dec 14 '20 06:12 Agent-Hellboy