add context to OpenFile

pull/144/head
Henrique Dias 2016-11-02 19:35:11 +00:00
parent 28ea0de82e
commit 70576793d9
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package file
import (
"context"
"net/url"
"os"
"path"
@ -37,7 +38,7 @@ type Listing struct {
func GetListing(u *config.User, filePath string, baseURL string) (*Listing, error) {
// Gets the directory information using the Virtual File System of
// the user configuration.
file, err := u.FileSystem.OpenFile(filePath, os.O_RDONLY, 0)
file, err := u.FileSystem.OpenFile(context.TODO(), filePath, os.O_RDONLY, 0)
if err != nil {
return nil, err
}