Skip to content

filemanager shows broken symlinks #3151

@steverweber

Description

@steverweber

st = os.lstat(os_path)

is using: os.lstat
Equivalent to stat(path, follow_symlinks=False).

the comment following that block of code says:
# skip over broken symlinks in listing

perhaps in the past the comment was true... however as it is now the file listing shows broken links.
The broken links are an issue for our university because we have symlinks to extra home dirs
that wont resolve... when users click them they get a 404 error page

can this be changed to use os.stat so broken symlinks are hidden, or could a config option be added to hide broken symlinks... or perhaps color code them red.

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions