this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix sshfs not able to mount dir

pomdtr f88fdb63 e772f667

+14 -7
+5 -7
.vscode/launch.json
··· 7 7 "program": "${workspaceFolder}/main.go", 8 8 "args": [ 9 9 "up", 10 - "--addr=:7778", 11 - "--ssh-addr=:2223" 12 - ], 13 - "env": { 14 - "SMALLWEB_DIR": "${workspaceFolder}/examples", 15 - "SMALLWEB_DOMAIN": "smallweb.localhost" 16 - }, 10 + "--dir=${workspaceFolder}/examples", 11 + "--domain=smallweb-dev.localhost", 12 + "--addr=:7777", 13 + "--ssh-addr=:2222" 14 + ] 17 15 }, 18 16 { 19 17 "name": "smallweb cli",
+9
sftp/handler.go
··· 119 119 return listerat(fileInfos), nil 120 120 121 121 case "Stat": 122 + if r.Filepath == "/" { 123 + stat, err := os.Stat(h.root.Name()) 124 + if err != nil { 125 + return nil, err 126 + } 127 + 128 + return listerat([]os.FileInfo{stat}), nil 129 + } 130 + 122 131 info, err := h.root.Stat(strings.TrimPrefix(r.Filepath, "/")) 123 132 if err != nil { 124 133 return nil, err