Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Rebol Programming/clean-path

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

USAGE: CLEAN-PATH target DESCRIPTION: Cleans-up '.' and '..' in path; returns the cleaned path. CLEAN-PATH is a function value. ARGUMENTS target -- (Type: file url) SOURCE CODE clean-path: func [ {Cleans-up '.' and '..' in path; returns the cleaned path.} target [file! url!] ][ if url? target [return target] if find [%/ %/. %/..] target [return %/] get-modes target 'full-path ]