Thursday, 13 August 2015

Re: Do Netsurf's errors get logged? (Syslog, Wimplog)

On 13 Aug, Jim Nagel wrote in message
<ede9a0f254.jim@abbeypress.net>:

> Steve Fryatt wrote on 12 Aug:
>
> > On 12 Aug, cj wrote in message
> > <54f1f9a962chris@chris-johnson.org.uk>:
>
> > > In article <cd18f7f154.jim@abbeypress.net>,
> >> Jim Nagel <netsurf@abbeypress.co.uk> wrote:
> >>
> >>> Warning from Netsurf
> >>> The file could not be saved due to an error:
> >>> 'ADFS::Drive2.$.2310d/zip' is a directory
> >>
> > > This is a common error and nothing to do with Netsurf as such. It is
> > > due to some oddity with SparkFS and handling of zip files, and seems
> > > to depend on how the original zip was produced (software). I get it
> > > from Filer_Action when running SyncDisc jobs.
>
> > I'm not sure it's that odd. If SparkFS has been seen and the zip file
> > has the correct filetype, RISC OS will report the object to NetSurf as a
> > directory, not a file (/some/ calls will report it as an "image
> > directory", but others won't).
>
> In fact what caused the error was that the drive already had an object
> with the same name as the download I wanted to save ("2310d/zip"). The
> text of the warning was totally inappropriate and misleading.

...for the reason I've just explained above.

If you have SparkFS loaded, RISC OS's filing system interface will report
zip files as being directories to any applications which check file
information. It's how the magic of Image Filing Systems works.

The "object with the same name" is a zip file and, because you have SparkFS
loaded, it looks like a directory to the filing system. For similar effect,
try and overwrite a StrongHelp manual with StrongHelp running and see what
happens.

> Anyway, it'd be more helpful if Netsurf's download routine would say "an
> object of that name already exists; do you want to overwrite it?" rather
> than relay this wuzzy "is a directory" wuzziness.

The "'ADFS::Drive2.$.2310d/zip' is a directory" bit of the error is given to
NetSurf by filecore. NetSurf is just the messenger.

--
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

No comments:

Post a Comment