Rebol 编程/undirize
外观
< Rebol 编程
UNDIRIZE path
返回路径的副本,删除任何尾部的 "/"。
UNDIRIZE 是一个函数值。
- path -- (类型:文件字符串 URL)
undirize: func [ {Returns a copy of the path with any trailing "/" removed.} path [file! string! url!] ][ path: copy path if #"/" = pick path length? path [clear back tail path] path ]