[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Behavior of 'mkdir'
From: |
WMennerich |
Subject: |
Behavior of 'mkdir' |
Date: |
Tue, 22 Jul 2008 07:04:23 -0700 (PDT) |
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.
- Behavior of 'mkdir',
WMennerich <=
- Behavior of 'mkdir', John W. Eaton, 2008/07/22
- Re: Behavior of 'mkdir', WMennerich, 2008/07/23
- Re: Behavior of 'mkdir', John W. Eaton, 2008/07/23
- Re: Behavior of 'mkdir', Jaroslav Hajek, 2008/07/23
- Re: Behavior of 'mkdir', John W. Eaton, 2008/07/23
- Re: Behavior of 'mkdir', Jaroslav Hajek, 2008/07/23
- Re: Behavior of 'mkdir', John W. Eaton, 2008/07/23
- Re: Behavior of 'mkdir', WMennerich, 2008/07/24
- Re: Behavior of 'mkdir', John W. Eaton, 2008/07/24
- Re: Behavior of 'mkdir', WMennerich, 2008/07/24