Rebol Programming/link-relative-path

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]
]