Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Update filesystem.go
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei0465 authored Dec 19, 2023
1 parent 506a12b commit 77d1ca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77d1ca0

Please sign in to comment.