copyfile(source,destination)
copies the file or
+ directory copyfile
replaces existing files without warning.
+ [status, message] = copyfile(source, destination)
+ copies createdir(dirname)
creates the directory
+ [status] = createdir(dirname)
creates the directory
+ r = isdir(path)
checks if mkdir(dirname)
creates the directory mkdir(parentdir, dirname)
creates the directory [status,msg] = mkdir(parentdir, dirname)
creates the directory pwd
returns in x = pwd()
returns in removedir(dirname)
removes the directory [status] = removedir(dirname)
removes the directory rmdir(dirname)
removes the directory
+ rmdir(dirname,'s')
removes the directory [status, message] = rmdir(dirname,'s')
removes the
+ directory x = fileinfo(file)
returns:
+ dec2oct(x(2))
to convert.
+ %io(1)
returns standard input (file descriptor 5).
+ %io(2)
returns standard output (file descriptor 6).
+ x = isfile(filenames)
checks whether getos() == 'Windows'
+ value (see also pathconvert).
+ Moreover, if mclose('all')
closes all files opened by
+ file('open',..)
or mclose('all')
.
+ niter==-1
the function iterates up to the
+ end of file. The fd1 = mopen(file1,'rb')
, so that all bytes will be read
+ without exception.
+ swap = 0
then automatic bytes swap is
+ disabled.
+ movefile(source, destination)
moves the file or directory
+ [status, message] = movefile(source, destination)
moves swap = 0
in the paths(i)
is the pathname of basename(files)
returns the suffixs of paths, i.e. the last string following the final file separator for each path given in C:/Tmp/folder'
will be converted on Windows to
+ 'C:\Tmp\folder'
).
+ 'home\tmp'
will be converted on
+ GNU/Linux to extension = fileext(fullpath)
splits the fullpath character string in the extension part including the dot.
+ [path, fname, extension] = fileparts(fullpath)
splits the
+ f = fullfile(varargin)
builds a full filename taking care of platform on which it is run
+ and handling the cases when the directories begin or end with a directory separator.
+ fullpath(relative_path)
сreates a full path name
+ for the specified relative path name.
+ r = is_absolute_path(path)
checks if tmp_name = tempname()
returns an unique string,
+ int32([1 -4 7;-9 6 -3])
will be displayed as:
+ %io(1)
), interprets it according
+ to a copyfile(source,destination)
は,
+
+ ファイルまたはディレクトリcopyfile
警告を発生せずに既存のファイルを置換します.
+
+ [status, message] = copyfile(source, destination)
は,
+
+ x = fileinfo(file)
は以下を返します:
+
+ dec2oct(x(2))
+
+ を使用します
+
+ x = isfile(filenames)
は,getos() == 'Windows'
の値に基づき変換されます
+
+ (pathconvert参照).
+
+ さらに,mclose('all')
は,
+
+ file('open',..)
または mclose('all')
の後に書かれたコマンドを実行しません.
+
+ niter==-1
の場合,
+
+ 関数はファイル終端まで反復処理を行ないます.
+
+ fd1 = mopen(file1,'rb')
とします.
+
+ swap = 0
の場合,
+
+ 自動バイトスワップは無効になります.
+
+ movefile(source, destination)
は,
+
+ ファイルまたはディレクトリ
+
+ [status, message] = movefile(source, destination)
は,
+
+ swap = 0
を追加することにより抑制できます.
+
+ paths(i)
はfullpath(relative_path)
は,
+ 指定した相対パス名に関する完全なパス名を作成します.
+ r = is_absolute_path(path)
は
+ tmp_name = tempname()
は,テンポラリなファイル名として使用可能な
+ ユニークな文字列, int32([1 -4 7;-9 6 -3])
は,hdfviewで以下のように表示されます:
+
+ %io(1)
)から文字データを取得し,
+
+ これをcopyfile(source, destination)
копирует файл или
+ директорию copyfile
замещает существующие файлы без предупреждения.
+ [status, message] = copyfile(source,destination)
+ копирует из источника createdir(dirname)
создаёт директорию
+ [status] = createdir(dirname)
создаёт директорию r = isdir(path)
проверяет является ли путь mkdir(dirname)
создаёт директорию
+ mkdir(parentdir, dirname)
создаёт
+ директорию [status,msg] = mkdir(parentdir, dirname)
+ создаёт директорию pwd
возвращает в x = pwd()
возвращает в removedir(dirname)
удаляет директорию
+ [status] = removedir(dirname)
удаляет директорию
+ rmdir(dirname)
удаляет директорию
+ rmdir(dirname,'s')
удаляет директорию [status, message] = rmdir(dirname,'s')
удаляет директорию x = fileinfo(file)
возвращает:
+ dec2oct(x(2))
.
+ x = isfile(filenames)
проверяет являются ли имена в
+ getos() == 'Windows'
(см. также pathconvert).
+ Более того, если mclose('all')
закрывает все файлы, открытые с помощью
+ file('open',..)
или mclose('all')
.
+ niter==-1
, то функция выполняет итерации до
+ конца файла. Значение fd1 = mopen(file1,'rb')
, так что все байты без исключения будут прочитаны.
+ swap = 0
, тогда автоматическая перестановка байтов отключается.
+ movefile(source, destination)
перемещает файл
+ или директорию [status, message] = movefile(source, destination)
перемещает источник swap = 0
в функции paths(i)
-- имя пути basename(files)
возвращает основное имя файлов,
+ указанных в getos() == 'Windows'
.
+ Более того, если 'C:/Tmp/folder'
будет
+ преобразован в Windows в 'C:\Tmp\folder'
).
+ 'home\tmp'
+ будет преобразован в GNU/Linux в extension = fileext(fullpath)
изымает из
+ символьной строки часть, относящуюся к расширению, включая точку.
+ [path, fname, extension] = fileparts(fullpath)
разделяет
+ символьную строку f = fullfile(varargin)
формирует полное имя
+ файла учитывая платформу, на которой она работает и обрабатывает
+ случаи, когда директории начинаются или заканчиваются
+ разделителем директорий.
+ fullpath(relative_path)
создаёт имя полного
+ пути для определённого имени относительного пути
+ r = is_absolute_path(path)
проверяет, является ли путь tmp_name = tempname()
возвращает уникальную строку,
+ int32([1 -4 7;-9 6 -3])
+ будет отображено как:
+ %io(1)
), интерпретирует их в соответствии с форматом