Rick McGuire wrote: > The filespec() BIF has a quirk that makes it's usage somewhat less > than portable. On Windows, there are three options, 'Drive', 'Path', > and 'Name'. On other platforms, there are just two options, 'Path' > and 'Name'. Unfortunately, on Windows, the 'Path" option only returns > the directory portion of the name, not the drive. There's no option > that returns the full location information, which means that if you > wish to obtain the fully qualified location of the file, you need to > make two calls. On *ix, of course, it works with just one call, and > the 'Drive' option is not supported, so you need to code additional > checks. > > I'd like to add a new option to filespec() that's portable across > platforms so you can do this with a single call. On Windows, this > will return the full drive/path portion. On *ix, this will be the > same as 'Path'. The best name I've come up with for this is > 'Location'. I'm open to suggestions on other alternatives. > > Rick > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Oorexx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > > The only alternative I can come up with is "Full" (full drive/path on Windows, path on *nix).
David Ashley ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
