FunctionPackage: net.uriToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

uri-to-pathname

Arguments: uri

Converts a file scheme URI to a pathname. This function and the related pathname-to-uri are designed to handle URIs with a scheme of file and no host. It is an error for uri not to be a file scheme URI or not to specify a pathname.

Examples

;;  On UNIX:

cl-user(1): (net.uri:uri-to-pathname (parse-uri "file:///foo/bar.cl"))
#p"/foo/bar.cl"
cl-user(2): (net.uri:pathname-to-uri *)
#<uri file:///foo/bar.cl>

;; On Windows:

cl-user(1): (net.uri:uri-to-pathname (parse-uri "file:///d:/foo/bar.cl"))
#p"d:\\foo\\bar.cl"
cl-user(2): (net.uri:pathname-to-uri *)
#<uri file:///d:/foo/bar.cl>

See also uri.htm for general information on Universal Resource Indicator support in Allegro CL.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version