Dave Tweed wrote: >> To find out whether a path is relative or absolute depends on what >> kind of paths you can expect on the input. If it's either a complete >> http URL (starting with "http:") or a relative path, then that's it: >> check for a starting "http:". > > The presence or absence of the optional scheme field does not > determine whether a URL path is absolute or relative -- it's the > leading slash after that (single or double) that tells you. That depends on what the specific spec of the OP determines. It could very well be that a path "/NormallyConsideredAbsolutePath/file.ext" is considered a "relative" path, relative to a base path, say "http://myserver/" (or even relative to "http://myserver/MyTopLevelDir/"). It all depends on the specific situation and how the "relative" paths are created. This also determines to what depths he needs to go in parsing the paths. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist