Monorepo for Tangled tangled.org
856
fork

Configure Feed

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

hook/setup: auto-create scan path if missing #358

open opened by j3s.sh targeting master
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:pxa3amkp7jhfclaads3zud7q/sh.tangled.repo.pull/3mlhcf23b2h22
+4
Diff #0
+4
hook/setup.go
··· 5 5 import ( 6 6 "errors" 7 7 "fmt" 8 + "io/fs" 8 9 "os" 9 10 "path/filepath" 10 11 "strings" ··· 54 55 func Setup(config config) error { 55 56 // iterate over all directories in current directory: 56 57 repoDirs, err := os.ReadDir(config.scanPath) 58 + if errors.Is(err, fs.ErrNotExist) { 59 + return os.MkdirAll(config.scanPath, 0755) 60 + } 57 61 if err != nil { 58 62 return err 59 63 }

History

1 round 0 comments
sign up or login to add to the discussion
j3s.sh submitted #0
1 commit
expand
015b4872
hook/setup: auto-create scan path if missing
merge conflicts detected
expand
  • hook/setup.go:5
expand 0 comments