Description
When connected to a remote server, attempting to navigate into a restricted directory (e.g. .ssh) causes the app to hang indefinitely.
Steps to Reproduce
- Connect to a remote SSH/SFTP server
- Attempt to navigate into a hidden/restricted directory such as
.ssh
- App hangs — no error is shown, no timeout occurs
Expected Behavior
App should handle permission errors or timeouts gracefully and display an appropriate error message instead of hanging.
Likely Cause
The SFTP directory listing call is blocking indefinitely on a permission-denied or stat error with no timeout. Could also be caused by symlinks inside the directory triggering a recursive stat loop.
Possible Fix
- Add a timeout to directory listing operations
- Catch
PermissionError / SFTP error codes and surface a user-friendly message
- Guard against symlink loops during directory traversal
Description
When connected to a remote server, attempting to navigate into a restricted directory (e.g.
.ssh) causes the app to hang indefinitely.Steps to Reproduce
.sshExpected Behavior
App should handle permission errors or timeouts gracefully and display an appropriate error message instead of hanging.
Likely Cause
The SFTP directory listing call is blocking indefinitely on a permission-denied or stat error with no timeout. Could also be caused by symlinks inside the directory triggering a recursive stat loop.
Possible Fix
PermissionError/ SFTP error codes and surface a user-friendly message