Scilab 5.3.0
- Scilab Online Help
- Files : Input/Output functions
- basename
- chdir
- copyfile
- createdir
- deletefile
- dir
- dirname
- dispfiles
- fileext
- fileinfo
- fileparts
- filesep
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- fullfile
- fullpath
- get_absolute_file_path
- getdrives
- getlongpathname
- getrelativefilename
- getshortpathname
- %io
- isdir
- isfile
- listfiles
- listvarinfile
- ls
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mkdir
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- pathconvert
- pathsep
- pwd
- removedir
- rmdir
- save_format
- scanf
- scanf_conversion
- sscanf
Please note that the recommended version of Scilab is 6.0.2. This page might be outdated.
See the recommended documentation of this function
dirname
ファイル名からディレクトリを得る
呼び出し手順
dirs= dirname(files[,flag [,flagexpand]])
パラメータ
- files
ファイル名の集合を指定する文字列行列.
- flag,flagexpand
オプションの論理値パラメータ. (デフォルト値
%t
).- files,dir
文字列行列.
説明
dirname
は files で指定したファイルエントリの
ディレクトリ名を返します.
flag
が真の場合, files は
MSDOS
変数で指定した目標型にまず
変換されます.
更に, flagexpand
が真の場合,
HOME
, SCI
または ~
のような接頭文字列は環境変数を用いて展開されます.
dirname(files,%f)
は,
files に指定したパス名が
MSDOS
変数により指定される変換に従わない
場合に間違った結果を出力することがあるため,注意を要します.
例
files=dirname('SCI/modules/fileio/macros/poo.sci') files=dirname('SCI/modules\fileio/macros/poo.sci') files=dirname('SCI/modules\fileio/macros/poo.sci.k')
Comments
Add a comment:
Please login to comment this page.