DiogenesList icon indicating copy to clipboard operation
DiogenesList copied to clipboard

Error in Phase 2:

Open marufzanik opened this issue 5 years ago • 1 comments

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

marufzanik avatar Sep 27 '20 14:09 marufzanik

Can't replicate here

ZapperDJ avatar Jun 29 '22 14:06 ZapperDJ