ZapperDJ / DiogenesList

Multiplatform HTML directory listing creator
52 stars 50 forks source link

Error in Phase 2: #3

Open marufzanik opened 4 years ago

marufzanik commented 4 years ago

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
ZapperDJ commented 2 years ago

Can't replicate here