Commit 86490a2f authored by Gero Müller's avatar Gero Müller
Browse files

fix symlink on broken link

parent e3a74298
......@@ -116,11 +116,12 @@ class FileSystem(object):
stats = os.lstat(fullpath)
is_symlink = stat.S_ISLNK(stats.st_mode)
if is_symlink:
if is_symlink and os.path.exists(fullpath):
stats = os.stat(fullpath)
size = stats.st_size
mtime = stats.st_mtime
#TODO: send realpath and/or broken link
if stat.S_ISDIR(stats.st_mode):
filelist.append({'name': elem, 'symlink': is_symlink, 'type': 'd', 'mtime': mtime, 'size': size})
if deep:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment