Re: Thinking about GtkFileSystem



On Fri, 2003-03-14 at 08:11, Soeren Sandmann wrote:
> Owen Taylor <otaylor redhat com> writes:
> 
> >   /* Methods
> >    */
> >   GSList *           (*list_roots)     (GtkFileSystem *file_system);
> 
> Should this call be able to return an error? I imagine stuff like "no
> response from server".  Essentially, a file system should be able to
> report that it is unusable for some reason.

The questions that comes to mind are:
 
 - If you can't access the local file system (and there is no
   intention to make it possible to have file selectors that
   don't view the local file system in addition to other stuff)
   then your system is probably not in a remotely close
   to usable state.

 - what the heck would the file selector do in this case???

My feeling is that as long as there is at least one accessible
root, then the file selector should just display that
root and make inaccessible roots simply vanish as not
there.

This does make me wonder if there should be some way for
the file system to push a dialog to display to the file
selector, or possibly to get the appropriate transient
parent for displaying a dialog itself.

[...]

> > - Is additional information needed in GtkFileInfo - 
> >   is-symlink? atime? ctime? permissions?
> 
> It seems to me that the file system must be able to report about
> hidden files. On Unix that would be files whose name start with a dot,
> but on Windows "hidden" is a separate attribute on the file.

Good idea ... there was an extensive discussion about this
on nautilus-list recently.

Regards, 
                                          Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]