Problem with Making a Folder in Win10

4 views (last 30 days)
Rightia Rollmann
Rightia Rollmann on 9 Apr 2018
Commented: Walter Roberson on 9 Apr 2018
I want to create folder 't2', but MATLAB throws a warning that 'Directory already exists', although the folder does NOT exist. What is the problem and how to solve it?
>> cd
>> exist('t2', 'dir')
ans =
>> mkdir('C:\User\User2\Desktop\t2')
Warning: Directory already exists.
>> exist('t2', 'dir')
ans =
Walter Roberson
Walter Roberson on 9 Apr 2018
Dang, I specifically looked for that kind of problem and still managed to overlook it!

Sign in to comment.

Answers (0)


Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!