MCPcopy Index your code
hub / github.com/devspace-sh/devspace / parseExcludeFile

Function parseExcludeFile

pkg/devspace/services/sync/controller.go:563–576  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

561}
562
563func parseExcludeFile(path string) ([]string, error) {
564 reader, err := os.Open(path)
565 if err != nil {
566 return nil, errors.Wrap(err, "open exclude file")
567 }
568 defer reader.Close()
569
570 paths, err := readAll(reader)
571 if err != nil {
572 return nil, errors.Wrap(err, "read exclude file")
573 }
574
575 return paths, nil
576}
577
578// Taken from Dockerignore
579// ReadAll reads a .dockerignore file and returns the list of file patterns

Callers 1

initClientMethod · 0.85

Calls 2

readAllFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected