From 8a0fe91480c5bc5535e3be46ac7ca96260e8f3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= <stephane.adjemian@univ-lemans.fr> Date: Thu, 6 Sep 2012 12:22:32 +0200 Subject: [PATCH] Removed annoying warning messages. --- matlab/CheckPath.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m index 209a0d609a..fde154c9af 100644 --- a/matlab/CheckPath.m +++ b/matlab/CheckPath.m @@ -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 -- GitLab