Skip to content

Commit

Permalink
Fix my build
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesvp committed May 4, 2015
1 parent ddaa9a6 commit 9517911
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/files/is_hidden_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ func IsHidden(f File) bool {
if e != nil {
return false
}
return attrs&syscall.FILE_ATTRIBUTE_HIDDEN != 0, nil
return attrs&syscall.FILE_ATTRIBUTE_HIDDEN != 0
}
8 changes: 8 additions & 0 deletions core/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ func outputDagnode(out chan interface{}, name string, dn *dag.Node) error {
return nil
}

type hiddenFileError struct {
fileName string
}

func (e *hiddenFileError) Error() string {
return fmt.Sprintf("%s is a hidden file", e.fileName)
}

type progressReader struct {
file files.File
out chan interface{}
Expand Down

0 comments on commit 9517911

Please sign in to comment.