We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit 2d58138Copy full SHA for 2d58138
dir_test.py
@@ -0,0 +1,12 @@
1
+# Script Name : dir_test.py
2
+# Author : Craig Richards
3
+# Created : 29th November 2011
4
+# Version : 1.0
5
+
6
+# Modifications :
7
+# Description : Tests to see if the directory testdir exists, if not it will create the directory for you
8
9
+import os # Import the OS module
10
11
+if not os.path.exists('testdir'): # Check to see if it exists
12
+ os.makedirs('testdir') # Create the directory
0 commit comments