fix for missing symlinks

This commit is contained in:
Ville Rantanen
2017-02-10 13:54:47 +02:00
parent 7b33fd218b
commit d4bf8d4655

View File

@@ -85,6 +85,9 @@ def generate_index(opts):
return
def get_filelink(path,fname,images=False):
if os.path.islink(os.path.join(path,fname)):
(fsize,fsstr,fsstrb,fdstr)=(0,"NA","NA","NA")
else:
fsize=os.path.getsize(os.path.join(path,fname))
fsstr=sizeof(fsize)
fsstrb=str(fsize)