We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1194bb9 commit b3c2820Copy full SHA for b3c2820
1 file changed
lcode.go
@@ -44,6 +44,14 @@ func main() {
44
45
vscodeLink := genVscodeLink(proxy.Auth.ID, path.Join("/dav/", codedir))
46
47
+ stat, err := os.Stat(codedir)
48
+ if err != nil {
49
+ fmt.Println("can't get file stat")
50
+ return
51
+ }
52
+ if !stat.IsDir() {
53
+ vscodeLink += "#file"
54
55
fmt.Println(vscodeLink)
56
// go reqOpen(vscodeLink)
57
go proxy.Serve(nil)
0 commit comments