[Ros-talk] URL, IOSlaves and User Root Directory

Shasckaw shasckaw at skynet.be
Sun Dec 21 19:13:56 EST 2003


Everybody already know the syntax of URL:
protocol:/domain name/path

When you browser files with mozilla, you have as protocol "file".
In KDE, with their KIOSlaves, Konqueror show the slave in the place of 
the protocol:
IOSlave:/structured string to get what you want

User Root Directories seems to work that way:
shortcut:/path

<parenthesis>
User Root Directory... it make me think about that old scrappy system of 
driver letter of windows, you know the a:, c:, d:, ... with pathes like 
this: device letter:path
What's stange with that thing which seems inconsistent from an Unix user 
point of view it that it could lead to unexpected user friendliness. In 
some way, what a chance M$ never exploited this.
</parenthesis>

These three things are alike.
What's happening when merging all these in one?
I'm visiting a zip file. The zip file acceded by file or ftp ioslave.
ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip

But when I'm in, I'm in zip IOSlave, what would happening?
zip://ftp.ros.rubyforge.org/experiments/zipfile.zip
or
zip:(ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip)/directory_in_zip_file/file_in_zip
or
zip?ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip:/directory_in_zip_file/file_in_zip
or
zip?(ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip):/directory_in_zip_file/file_in_zip
or
zip?file=(ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip):/directory_in_zip/file_in_zip
or
ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip?/directory_in_zip/file_in_zip
or
ftp://ftp.ros.rubyforge.org/experiments/zipfile.zip?zip:/directory_in_zip/file_in_zip
or something else?

And when combining with User Root Directory?
Let's assume:
    file://usr/share/ros/doc/first_doc.bz2
    ros = ['/usr/share/ros',...]
Then do we have:
file:ros:/first_doc.bz2
or
ros:file:/first_doc.bz2
or
file:/ros:/first_doc.bz2
or something else?

Let's assume:
    file://usr/share/ros/doc/first_doc.bz2
    ros = ['/usr/share/ros',...]
    first_doc.bz2 has /directory/file in itself
Then do we have:
bz2?file:ros://first_doc.bz2:/directory/file
or
bz2?(file:ros://first_doc.bz2):/directory/file
or
bz2?file=(file:ros://first_doc.bz2):/directory/file
or
file:/ros:/first_doc.bz2?/directory/file
or something else?

Well, do you get what I mean?

Once a first kind of ROS URI is decided,
perhaps we could make some tests with your visitor pattern experiment?

Lio



More information about the Ros-talk mailing list