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 CODEEdit

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