import time as t from os import path def createFile(dest): ''' The script creates a txt file at the passed in location, names file based on date ''' date = t.localtime(t.time()) ## FileName = Month_Day_Year name = "%d_%d_%d.txt" %(date[1], date[2], (date[0] %100)) if not (path.isfile(dest + name)): f = open(dest + name, "w") f.write("\\n"*30) f.close() if __name__ == "__main__": destination = "//mnt//home//enigma//Documents//" createFile(destination) input("done!")
"Tb to when I got hit it the face bc my shitty doubles partner would move the fuck out of the way! " Sent from my iPhone using Grasscity Forum