summaryrefslogtreecommitdiffstats
path: root/source/sourceSpec.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2018-09-06 14:42:55 -0500
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-09-07 08:25:51 +0200
commit600047ff1cb95d061af1983b9a755157eb4941f8 (patch)
tree47f34c1ed53e0b9fcb192df54be6655390f25125 /source/sourceSpec.go
parent5f2e1cb8969c2adac6c866b57cc331e1bc16d4e9 (diff)
source: Fix golint godoc issues
Diffstat (limited to 'source/sourceSpec.go')
-rw-r--r--source/sourceSpec.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/sourceSpec.go b/source/sourceSpec.go
index 144d86ca3..13aac4592 100644
--- a/source/sourceSpec.go
+++ b/source/sourceSpec.go
@@ -76,6 +76,7 @@ func NewSourceSpec(ps *helpers.PathSpec, fs afero.Fs) *SourceSpec {
}
+// IgnoreFile returns whether a given file should be ignored.
func (s *SourceSpec) IgnoreFile(filename string) bool {
if filename == "" {
if _, ok := s.SourceFs.(*afero.OsFs); ok {
@@ -109,6 +110,8 @@ func (s *SourceSpec) IgnoreFile(filename string) bool {
return false
}
+// IsRegularSourceFile returns whether filename represents a regular file in the
+// source filesystem.
func (s *SourceSpec) IsRegularSourceFile(filename string) (bool, error) {
fi, err := helpers.LstatIfPossible(s.SourceFs, filename)
if err != nil {