- commit
- ca28b36
- parent
- 388b092
- author
- Eric Bower
- date
- 2023-09-01 14:52:40 +0000 UTC
fix(prose): upload single file without referencing name in destination Fixes #36
1 files changed,
+1,
-1
+1,
-1
1@@ -99,7 +99,7 @@ func (h *ScpUploadHandler) List(s ssh.Session, fpath string) ([]os.FileInfo, err
2 var post *db.Post
3 var posts []*db.Post
4
5- if cleanFilename == "" || cleanFilename == "." {
6+ if cleanFilename == "" || cleanFilename == "." || cleanFilename == "/" {
7 name := cleanFilename
8 if name == "" {
9 name = "/"