fix for missing symlinks

This commit is contained in:
Ville Rantanen
2017-02-10 13:57:01 +02:00
parent d4bf8d4655
commit ab4a51a5f0

View File

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