Closed Bug 392292 Opened 17 years ago Closed 17 years ago

Should Save Link As... save the contents of the directory?

Categories

(Toolkit :: Downloads API, enhancement)

x86
Windows Vista
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 192570

People

(Reporter: stephend, Unassigned)

Details

Build ID: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a8pre) Gecko/2007081409 Minefield/3.0a8pre

Summary: Should Save Link As... save the contents of the directory?

NOTE: This didn't work when I tried it in 2.0.0.6 on Vista; not a regression, then...

Currently on trunk, when you do a "Save Link As" on a directory name (at least on an FTP server), we save a file with the link's title (not its path), whose contents are something on the order of:

300: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/
200: filename content-length last-modified file-type
201: "nightly" 0 Sun%2C%2014%20Aug%202007%2019%3A29%3A00 DIRECTORY 
201: "releases" 0 Sun%2C%2030%20Jul%202007%2020%3A40%3A00 DIRECTORY 
201: "tinderbox-builds" 0 Sun%2C%2013%20Jul%202007%2007%3A00%3A00 DIRECTORY

Steps to Reproduce:

1. Load ftp://ftp.mozilla.org/pub/mozilla.org/firefox/
2. Right-click on the "Up to higher level directory" and choose "Save Link As..."
3. Don't yet worry about the filename (leave it default).  Save it to disk.

Expected Results:

Rather than that, I'd expect that we save the _contents_ of the indicated folder.

Actual Results:

You get a file named "Up to a higher level directory" (with no filetype), whose contents are:

300: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/
200: filename content-length last-modified file-type
201: "nightly" 0 Sun%2C%2014%20Aug%202007%2019%3A29%3A00 DIRECTORY 
201: "releases" 0 Sun%2C%2030%20Jul%202007%2020%3A40%3A00 DIRECTORY 
201: "tinderbox-builds" 0 Sun%2C%2013%20Jul%202007%2007%3A00%3A00 DIRECTORY
Flags: blocking-firefox3?
beltzner, what say ye?
Flags: in-litmus?
I swear I've seen this bug before (but I cannot find it).  Also, beltzner isn't reading bugmail right now...
I couldn't find it either--even grepping through all of the INVALID or WONTFIX bugs--which amazed me.
(In reply to comment #4)
> maybe Bug 192570?

Totally; thanks for the tip! 

Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Flags: in-litmus?
Flags: blocking-firefox3?
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.