MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Crawl

Method Crawl

pkg/devspace/sync/symlink.go:79–92  ·  view source on GitHub ↗

Crawl resolves the symlink and sends an event for each file in the target path

()

Source from the content-addressed store, hash-verified

77
78// Crawl resolves the symlink and sends an event for each file in the target path
79func (s *Symlink) Crawl() error {
80 return filepath.Walk(s.TargetPath, func(path string, info os.FileInfo, err error) error {
81 if err != nil {
82 return err
83 }
84
85 s.upstream.events <- &symlinkEvent{
86 event: notify.Create,
87 path: s.rewritePath(path),
88 }
89
90 return nil
91 })
92}
93
94// Stop stops watching on the watching path
95func (s *Symlink) Stop() {

Callers 1

evaluateChangeMethod · 0.80

Calls 1

rewritePathMethod · 0.95

Tested by

no test coverage detected