You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Yannick Menager <ym...@yahoo.co.uk> on 2005/12/09 14:20:17 UTC
Re: [VFS] File Type
There is one thing i was wondering if there was any possibility of
changing in the VFS API.
the FileType.IMAGINARY
Now, let's see.. we have:
- A FOLDER, that has childrens, but no data
- A FILE, that has no childrens, but has data.
The other alternatives would be something that has no childrens or data,
which i can't think of any valid usecase for it, or the much more likely
of a file that has *both* childrens and data (tons of usecases for that
one)
Why not instead use something like FileType.HYBRID, FileType.BOTH,
FileType.VIRTUAL, FileType.OTHER
Anything but 'Imaginary'
I know it's a bit late in the day, but i really think it would be worth
changing that for the 1.0 release.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [VFS] File Type
Posted by Yannick Menager <ym...@yahoo.co.uk>.
I do think the type makes some sense, however in system API, i always
felt it is preferable to use more technical terms, from which the
meaning can be more completely understood just from the name. And of all
the potential terms i can think of, I just feel that Imaginary is one of
the least appropriate ones. Just my personal opinion...
On Fri, 09 Dec 2005 14:32:35 +0100, "Mario Ivankovits" <ma...@ops.co.at>
said:
> Hi Yannick!
> > the FileType.IMAGINARY
> > - A FOLDER, that has childrens, but no data
> > - A FILE, that has no childrens, but has data.
> >
> I dont understand whats that bad with "imaginary" - a file/foler that is
> non existent. Once we cross the bridge where we have to deal with files
> that might have children or folders with content we can introduce new
> FileTypes.
> Or - do not reflect this using file types at all, but introduce
> Capabilities on fileObject level too.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [VFS] File Type
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi Yannick!
> the FileType.IMAGINARY
> - A FOLDER, that has childrens, but no data
> - A FILE, that has no childrens, but has data.
>
I dont understand whats that bad with "imaginary" - a file/foler that is
non existent. Once we cross the bridge where we have to deal with files
that might have children or folders with content we can introduce new
FileTypes.
Or - do not reflect this using file types at all, but introduce
Capabilities on fileObject level too.
---
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org