%% Create Folder That Already Exists
% Create the same folder twice, verifying the status of the operation after each try.
% Create the folder newFolder. The operation succeeds, returning a status of 1 with no error or warning message.

[status, msg, msgID] = mkdir('newFolder')

%
% Create the folder newFolder again. The operation succeeds again, returning a status of 1. A warning message and message ID inform you that the folder already exists.

[status, msg, msgID] = mkdir('newFolder')

% Copyright 2012 The MathWorks, Inc.