Checking if directory exists, and creating a directory

Alright, if the user types in the name of a directory to be created (usrDir), how do I check to see if usrDir exists, and if it does not, create it?

Thanks for the help,
chmod101
chmod101Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
robert_marquardtConnect With a Mentor Commented:
DirectoryExists and ForceDirectories.
0
 
Lee_NoverCommented:
and add FileCtrl unit to the uses clause to use those functions :)
0
 
chmod101Author Commented:
Thanks for the help, guys.

chmod101
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.