Behavior of 'mkdir'
WMennerich
W.Mennerich at gmx.net
Tue Jul 22 09:04:23 CDT 2008
Hi,
the behavior of octaves mkdir is not equal to Matlabs mkdir:
Octave:
mkdir(test)
ans=1
mkdir(test) %second call
ans=0
************
Matlab:
mkdir(test)
ans=1
mkdir(test) %second call
ans=1
Warning: Directory already exists.
**************************
As I understand the difference is that octave tells you whether the
directory was created or not:
The second call does not create the directory because it is already
existing.
Hence, the ack is 'false'.
Matlab tells you whether the directory exists or not, so also the second
result is 'true'.
Would it be better to implement the mkdir function like the Matlab one?
Best, Wolfgang
--
View this message in context: http://www.nabble.com/Behavior-of-%27mkdir%27-tp18587943p18587943.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
More information about the Octave-maintainers
mailing list