diff options
Diffstat (limited to 'fs.go')
| -rw-r--r-- | fs.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -116,3 +116,7 @@ func (fs *Fs) Chown(name string, uid, gid int) error { func (fs *Fs) Chtimes(name string, atime time.Time, mtime time.Time) error { panic("not implemented") } + +func (fs *Fs) contextWithTimeout() (context.Context, context.CancelFunc) { + return context.WithTimeout(context.Background(), fs.Timeout) +} |
