Problem with Making a Folder in Win10

조회 수: 4 (최근 30일)
Rightia Rollmann
Rightia Rollmann 2018년 4월 9일
댓글: Walter Roberson 2018년 4월 9일
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