Handbook
Glossary
<CFFileSystemURL> ( string dir? -- url )
Vocabulary
core-foundation
.
urls
Inputs
string
a pathname string
dir?
a boolean indicating if the pathname is a directory
Outputs
url
a
CFURL
Word description
Creates a new
CFURL
pointing to the given local pathname.
Definition
USING:
core-foundation
core-foundation.strings
kernel
;
IN:
core-foundation.urls
:
<CFFileSystemURL>
( string dir? -- url )
[
<CFString>
f
over
kCFURLPOSIXPathStyle
]
dip
CFURLCreateWithFileSystemPath
swap
CFRelease
;