/usr/share/freemat/toolbox/os/mkdir.m is in freemat-data 4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | % MKDIR MKDIR Make Directory
%
% Usage
%
% Creates a directory. The general syntax for its use is
%
% mkdir('dirname')
%
% which creates the directory dirname if it does not exist. The argument
% dirname can be either a relative path or an absolute path. For compatibility
% with MATLAB, the following syntax is also allowed
%
% mkdir('parentdir','dirname')
%
% which attempts to create a directory dirname in the directory given by parentdir.
% However, this simply calls mkdir([parentdir dirsep dirname]), and if this is not
% the required behavior, please file an enhancement request to have it changed. Note that
% mkdir returns a logical 1 if the call succeeded, and a logical 0 if not.
% Copyright (c) 2002-2007 Samit Basu
% Licensed under the GPL
function status = mkdir(parentdir,dirname)
if (~exist('dirname'))
status = mkdir_core(parentdir);
else
status = mkdir_core([parentdir dirsep dirname]);
end
|