Skip to content
Snippets Groups Projects
Commit b8156d4b authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Added steps for creating test files in test_dir

parent 2174935b
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,15 @@ def create_testdir():
final_directory = os.path.join(current_directory, r'test_dir')
if not os.path.exists(final_directory):
os.makedirs(final_directory)
return final_directory
def create_testfiles():
pass
def create_testfiles(dir):
for x in range(1, 6):
filename = 'test' + str(x) + '.txt'
with open(os.path.join(dir, filename), 'w'):
pass
if __name__=="__main__":
create_testdir()
create_testfiles()
#global final_directory
testdir = create_testdir()
create_testfiles(testdir)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment