Acet::pathonly

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(acet::pathonly filename )


機能
指定された filename からパスの文字列を返す。


引数
  • filename : ファイル名の文字列


戻り値
filename のパス部分の文字列。


サンプル
(acet::pathonly "c:/temp/tempsub/note.txt")
"c:/temp/tempsub/"

(acet::pathonly "https://temp/tempsub/note.html")
"https://temp/tempsub/"

(acet::pathonly "note.txt")
""

(acet::nameonly "c:/temp/tempsub/note.txt")
"note.txt"

(acet::nameonly "https://temp/tempsub/note.html")
"note.html"

(acet::nameonly "note")
"note"


関連事項