REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: split-path

split-path  target

Splits and returns directory path and file as a block.

Arguments:

target [file! url! string!]

See also:

clean-path   suffix?  

Description

Returns a block consisting of two elements, the path and the file. Can be used on URLs and files alike.

probe split-path %tests/math/add.r
[%tests/math/ %add.r]
set [path file] split-path http://www.rebol.com/graphics/logo.gif
print path
http://www.rebol.com/graphics/
print file
logo.gif


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin