ファイルまたはフォルダのパスを作る時に使う。macOSとWindowsで異なるディレクトリセパレータを返す。
使い方
$separator:=JCL_file_GetDirSeparator
引数
$0: ディレクトリーセパレータの文字列
ソースコード:
//JCL_file_GetDirSeparator
//20231230 yabe wat
//OSに合わせたフォルダの区切りを返す
//$0:OSに合わせたフォルダの区切り
C_TEXT($0; $separator)
$separator:=""
//実行されているのが
If (Is Windows)
//winなら
$separator:="\\"
Else
//macなら
$separator:=":"
End if
$0:=$separator