Problem with Making a Folder in Win10

4 次查看(过去 30 天)
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
C:\Users\User2\Desktop
>> exist('t2', 'dir')
ans =
0
>> mkdir('C:\User\User2\Desktop\t2')
Warning: Directory already exists.
>> exist('t2', 'dir')
ans =
0
  3 个评论
Rightia Rollmann
Rightia Rollmann 2018-4-9
My silly mistake was there were two folders, one 'Users' and the other 'User'! Thanks!
Walter Roberson
Walter Roberson 2018-4-9
Dang, I specifically looked for that kind of problem and still managed to overlook it!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by