We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f6d15 commit da6ca18Copy full SHA for da6ca18
dir_test.py
@@ -8,6 +8,10 @@
8
# Description : Tests to see if the directory testdir exists, if not it will create the directory for you
9
10
import os # Import the OS module
11
-
12
-if not os.path.exists('testdir'): # Check to see if it exists
13
- os.makedirs('testdir') # Create the directory
+DirCheck = raw_input("Please enter directory name to check : ")
+print
+print "There was no directory under the name " +DirCheck
14
15
+print "So, a new directory under the name " +DirCheck + " has been created!"
16
+if not os.path.exists(DirCheck): # Check to see if it exists
17
+ os.makedirs(DirCheck) # Create the directory
0 commit comments