Skip to content

Commit

Permalink
server ignores all files that start by '.'.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsampaio committed Feb 9, 2016
1 parent d36ae0b commit d474a9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/mumax3-server/que.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ func LoadUserJobs(dir string) string {
log.Println("LoadUserJobs", dir)
var newJobs []*Job
err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
if strings.HasSuffix(path, ".mx3") && !strings.Contains(path, "._") {
if strings.HasSuffix(path, ".mx3") && !strings.HasPrefix(info.Name(), ".") {
ID := thisAddr + "/" + path
log.Println("addingJob", ID)
log.Println("fileInfoNAME", info.Name())
job := &Job{ID: ID}
job.Update()
newJobs = append(newJobs, job)
Expand Down

0 comments on commit d474a9d

Please sign in to comment.