You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
When I run the script it stops giving this error.
ValueError Traceback (most recent call last)
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
The text was updated successfully, but these errors were encountered: