Rebol 程式設計/dirize
外觀
DIRIZE path
返回路徑的副本,將其轉換為目錄。
DIRIZE 是一個函式值。
dirize: func [
{Returns a copy of the path turned into a directory.}
path [file! string! url!]
][
either #"/" <> pick path length? path [join path #"/"] [copy path]
]