Skip to content

Commit

Permalink
Skip non-regular files prasmussen#114
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Apr 9, 2016
1 parent bdd7877 commit bc5f453
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drive/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ func (self *Drive) uploadRecursive(args UploadArgs) error {
if info.IsDir() {
args.Name = ""
return self.uploadDirectory(args)
} else {
} else if info.Mode().IsRegular() {
_, _, err := self.uploadFile(args)
return err
}

return nil
}

func (self *Drive) uploadDirectory(args UploadArgs) error {
Expand Down

0 comments on commit bc5f453

Please sign in to comment.