更新时间:2023-11-29 08:55:16
Path.GetFullPath
;如果路径无效,它会抛出异常。
Call Path.GetFullPath
; it will throw exceptions if the path is invalid.
要禁止相对路径(如字
),呼叫 Path.IsPathRooted
。
To disallow relative paths (such as Word
), call Path.IsPathRooted
.