How Should a Double File Extension Be Treated

General discussion about the FlashGot extension for Firefox
Post Reply
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

How Should a Double File Extension Be Treated

Post by therube »

How Should a Double (or more) File Extension Be Treated?

FlashGot Options -> File Extensions

> 7z, Add
> Apply file extension to batch downloads too

URL: http://www.securemecca.com/public/Changes4Hosts/

FlashGot All

This picks up both *.7z and *.7z.sig.

Should it be picking up the latter?
(You could always add a "sig" extension if you wanted them.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How Should a Double File Extension Be Treated

Post by therube »

Add an extension "40".

URL: http://ftp.mozilla.org/pub/seamonkey/re ... n32/en-US/

FlashGot All

Picks up all the files in the directory, including the parent directory entry too.

-------

URL: http://ftp.mozilla.org/pub/seamonkey/re ... n32/en-US/

FlashGot All

Nothing (rightfully) is picked up.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How Should a Double File Extension Be Treated

Post by therube »

Suppose all in all, it doesn't really matter.
Just that results that are being returned as not as one might expect.
Though once you understand just what is happening, easy enough to adjust for it.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
User avatar
therube
Ambassador
Posts: 7922
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How Should a Double File Extension Be Treated

Post by therube »

And its not really a "file extension" that is being recognized, but rather something more like "(\.\w)?", such that an extension of "5" picks up everything from here:

http://ftp.mozilla.org/pub/phoenix/releases/0.5/
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
Post Reply