Skip to content

Commit be1b412

Browse files
committed
Tests to see if the directory testdir exists, if not it will create the directory for you
1 parent 9fde0c1 commit be1b412

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dir_test.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Script Name : dir_test.py
22
# Author : Craig Richards
33
# Created : 29th November 2011
4+
# Last Modified :
45
# Version : 1.0
5-
66
# Modifications :
7+
78
# Description : Tests to see if the directory testdir exists, if not it will create the directory for you
89

910
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
11+
if not os.path.exists('testdir'): # Check to see if it exists
12+
os.makedirs('testdir') # Create the directory

0 commit comments

Comments
 (0)