Skip to content

Commit

Permalink
Test func fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cydside committed Mar 21, 2021
1 parent 223f3d2 commit 83521a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cff.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (p *Cff) removeHiddenFiles(files []string) []string {
defer mu.Unlock()

for _, v := range files {
if !strings.Contains(v, string(os.PathSeparator)+".") {
if !strings.Contains(v, string(os.PathSeparator)+".") && !strings.HasPrefix(v, ".") {
r = append(r, v)
}
}
Expand Down
2 changes: 1 addition & 1 deletion cff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestCff(t *testing.T) {
IgnoreHiddenFiles: true,
IntervalCheck: 5,
CallbackFunction: func(list []string) {
f1s := []string{"testfolders/a/ah/ah_01.txt"}
f1s := []string{"ah_01.txt"}
fmt.Println("f1 has found:")
for _, v := range list {
fmt.Printf("%s\n", v)
Expand Down

0 comments on commit 83521a7

Please sign in to comment.