Removed annoying warning messages.

time-shift
Stéphane Adjemian (Scylla) 2012-09-06 12:22:32 +02:00
parent 43e2c9ecef
commit 8a0fe91480
1 changed files with 6 additions and 2 deletions

View File

@ -32,12 +32,16 @@ DirectoryName = [ dname '/' type ];
if ~isdir(dname)
% Make sure there isn't a file with the same name, see trac ticket #47
delete(dname)
if isfile(dname)
delete(dname)
end
mkdir('.', dname);
end
if ~isdir(DirectoryName)
% Make sure there isn't a file with the same name, see trac ticket #47
delete(DirectoryName)
if isfile(DirectoryName)
delete(DirectoryName)
end
mkdir('.',DirectoryName);
end