function Folder_Check( folderFull )
%function Folder_Check( folderFull )
%
%Checks if folder is present in current directory. If not, it creates the
%folder.
%
%
%INPUTS
%
%folderFull Name of Folder
%
%
%OUTPUTS
%
%NONE
%
%
%NOTES
%
%NONE
%
%
%REQUIRED SUBFUNCTIONS:
%
%NONE
%
%
%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%X Author: Sky Cheung X
%X Date Created: 14 Jul 2014 X
%X Last Modified: 22 Sep 2014 X
%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%

%Input Parsing
p = inputParser;

%Parsing Conditions
addRequired(p, 'folderFull', @ischar);

%Parsing Inputs
parse(p, folderFull);

%Retrieving Proper Inputs
folderFull = p.Results.folderFull;

%Removing Parser
clear p

%Compute Fileparts
[path, fName, ext] = fileparts(folderFull); %Extension in case folder has '.'

%If statement to fill in current path
if isempty(path)
path = pwd;
folderFull = fullfile(path, [fName, ext]);
end

%If Statement to check
if ~isdir(folderFull)
%Folder does not exist. Creating folder now.
mkdir(folderFull);
%Print status
disp(['Directory Created: ', folderFull]);
end %End of if statement

end %End of Folder_Check.m