Igor Stasenko wrote
> 
> detecting the file type on it's extension is too unreliable , IMO.
> 

I used the file extension in the example because that's what I'm familiar
with in other systems. The FileReference subclass could do any checks it
wants to prevent false positives (e.g. a .zip file could check that it
begins with a local file header signature).

Also, this is how file services are already handled in Pharo (browse
implementors of #fileReaderServicesForFile:suffix:)



--
View this message in context: 
http://forum.world.st/ENH-FileReference-subclasses-tp4643116p4643224.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Reply via email to