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.


target [file! url! string!]

See also:

clean-path   suffix?  


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
print path
print file

  TOC < Back Next > - WIP Wiki Feedback Admin