From 77d1ca01928952b4537815dd90d2da10dad3ac35 Mon Sep 17 00:00:00 2001 From: Andrei-Lucian Mociu Date: Tue, 19 Dec 2023 02:22:58 +0200 Subject: [PATCH] Update filesystem.go --- server/filesystem/filesystem.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/filesystem/filesystem.go b/server/filesystem/filesystem.go index 1618c74f..41acde89 100644 --- a/server/filesystem/filesystem.go +++ b/server/filesystem/filesystem.go @@ -543,7 +543,8 @@ func (fs *Filesystem) ListDirectory(p string) ([]Stat, error) { if cleanedp != "" && f.Mode()&os.ModeNamedPipe == 0 { file, err := fs.manager.Open(filepath.Join(cleaned, f.Name())) if err != nil { - panic(fmt.Errorf("Error SFTP Open: %s", err)) + // panic(fmt.Errorf("Error SFTP Open: %s", err)) + fmt.Println(err) } m, _ = mimetype.DetectReader(file) } else {