Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72dc3d7

Browse files
committed
Update createDirectory.py
Updated the comments.
1 parent 03afcc8 commit 72dc3d7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

createDirectory.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
# Date: 2/4/2015
55
# File name: createDirectory.py
66
# Python Version: 3.X
7-
# Description: This is a simple example of how to check to see if a directory exist, and if not, create it.
8-
# This script also shows an example of how to create a file name with a time stamp, use that filen name
9-
# to open a file for writing, and write to the file, and finally, close it.
10-
7+
# Description: This script shows the example of how concatenation works in python, utilizing the os module to check a directory
8+
# and create it if it does not exist, and opening and closing a file for writing.
9+
#
1110
# This is nothing too difficult, and you can certainly add more functionality to it if you wish.
1211
# One idea is to build this whole example into an object with subsequent methods.
1312

0 commit comments

Comments
 (0)