Rebol Programming/link-relative-path

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

LINK-RELATIVE-PATH file 

DESCRIPTION:[edit | edit source]

Remove link-root from a file path

LINK-RELATIVE-PATH is a function value.

ARGUMENTS:[edit | edit source]

  • file -- (Type: any)

SOURCE CODE[edit | edit source]

link-relative-path: func ["Remove link-root from a file path" file /local f][
    either f: find/match file link-root [copy f] [file]
]