newsgroups-index (beta)

Current group: opera.general

Re: save as with image

Re: save as with image  
Spartanicus
 Re: save as with image  
Matthew Winn
 Re: save as with image  
Spartanicus
From:Spartanicus
Subject:Re: save as with image
Date:Fri, 14 Jan 2005 15:14:36 +0000
Thread moved from opera.beta

"mttc" wrote:

>Opera beta is excellent for me, especial the Keyboard shortcut.
>But I wonder why when I save with image, opera not put all image in Sub
>folder? Like other browsers?

The way it works now is linked to the way Opera caches it's files. When
you select "Save with images" you effectively get a copy of the page and
it's dependencies as it's stored in Opera's cache. This includes a
rewritten html file stripped of any sub dir links, Opera stores all
files in one directory.

Changing this to store dependencies into a sub folder would require a
rewrite of the current cache mechanism.

--
Spartanicus
From:Matthew Winn
Subject:Re: save as with image
Date:Fri, 14 Jan 2005 15:41:30 +0000 (UTC)
On Fri, 14 Jan 2005 15:14:36 +0000, Spartanicus wrote:
> "mttc" wrote:
>
> >Opera beta is excellent for me, especial the Keyboard shortcut.
> >But I wonder why when I save with image, opera not put all image in Sub
> >folder? Like other browsers?
>
> The way it works now is linked to the way Opera caches it's files. When
> you select "Save with images" you effectively get a copy of the page and
> it's dependencies as it's stored in Opera's cache. This includes a
> rewritten html file stripped of any sub dir links, Opera stores all
> files in one directory.

Opera caches the page in its original form. It doesn't rewrite the
page unless you save with images.

> Changing this to store dependencies into a sub folder would require a
> rewrite of the current cache mechanism.

No it wouldn't. All it would require is minor changes to the code
that saves the page:

(1) Create a new directory to hold the objects referenced by the page.
(2) Add the name of that directory to the path when writing the files.
(3) Alter the source to prefix the URL with the directory name.

Even so, I think RFC2557 would be a better approach for not filling
a directory with hundreds of files when saving a set of pages.

--
Matthew Winn
[If replying by email remove the "r" from "urk"]
From:Spartanicus
Subject:Re: save as with image
Date:Fri, 14 Jan 2005 16:09:52 +0000
o*@matthewwinn.me.urk (Matthew Winn) wrote:

>> The way it works now is linked to the way Opera caches it's files. When
>> you select "Save with images" you effectively get a copy of the page and
>> it's dependencies as it's stored in Opera's cache. This includes a
>> rewritten html file stripped of any sub dir links, Opera stores all
>> files in one directory.
>
>Opera caches the page in its original form. It doesn't rewrite the
>page unless you save with images.

Oops, you are right. Something more to it though, as all files are
stored in one disk cache directory.

>> Changing this to store dependencies into a sub folder would require a
>> rewrite of the current cache mechanism.
>
>No it wouldn't. All it would require is minor changes to the code
>that saves the page:

Since all files are in one cache folder I suspect that there is a
relation to the disk cache.

--
Spartanicus
   

Copyright © 2006 newsgroups-index   -   All rights reserved   -   Impressum