REBOL Programming/link-relative-path

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

USAGE:[edit]

LINK-RELATIVE-PATH file 

DESCRIPTION:[edit]

Remove link-root from a file path

LINK-RELATIVE-PATH is a function value.

ARGUMENTS:[edit]

  • file -- (Type: any)

SOURCE CODE[edit]

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