跳轉到內容

Rebol 程式設計/dirize

來自華夏公益教科書
DIRIZE path 

返回路徑的副本,將其轉換為目錄。

DIRIZE 是一個函式值。

  • path -- (型別:檔案字串 URL)

原始碼

[編輯 | 編輯原始碼]
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]
]
華夏公益教科書