in ()
271 title = str('/content/index')
272 if os.path.exists(pathToIndex): # check if the specified directory exists
--> 273 generateDirArray(pathToIndex)
274 generateHTML(dirData,appName,appVer,genDate,genTime,title,appLink,numFiles,numDirs,grandTotalSize,linkFiles)
275 else:
in generateDirArray(dirToScan)
138 totalSize = totalSize + fileSize
139 grandTotalSize = grandTotalSize + fileSize
--> 140 fileModifiedTime = datetime.datetime.fromtimestamp(os.path.getmtime(currentDir+'/'+file))
141 fileModifiedTime = fileModifiedTime.strftime("%d/%m/%Y %H:%M:%S")
142 currentDirArray.append(file+'*'+str(fileSize)+'*'+fileModifiedTime) # append file info to currentDirArray
ValueError: year 0 is out of range
When I run the script it stops giving this error.
ValueError Traceback (most recent call last)