Problem with Making a Folder in Win10

4 vues (au cours des 30 derniers jours)
Rightia Rollmann
Rightia Rollmann le 9 Avr 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
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 commentaires
Rightia Rollmann
Rightia Rollmann le 9 Avr 2018
My silly mistake was there were two folders, one 'Users' and the other 'User'! Thanks!
Walter Roberson
Walter Roberson le 9 Avr 2018
Dang, I specifically looked for that kind of problem and still managed to overlook it!

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by