Focus3D / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

More robust file-type recognition. #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, the way we recognize a file type is through its extension ...
sort of.  Actually, we simply scan to see if ".htm" is in the file name,
then possibly look for ".txt" or ".rst"...  We should really make sure that
we are looking at the extension by using the appropriate function from the
os module.

Original issue reported on code.google.com by andre.ro...@gmail.com on 23 Jan 2008 at 1:15

GoogleCodeExporter commented 8 years ago
Fixed, revision 576.  using 
extension = some_path.split(".")[-1] in a few places.

Original comment by andre.ro...@gmail.com on 2 Feb 2008 at 3:39

GoogleCodeExporter commented 8 years ago

Original comment by andre.ro...@gmail.com on 2 Feb 2008 at 7:12