forked from TrueCloudLab/rclone
vendor: update all dependencies
This commit is contained in:
parent
61ff7306ae
commit
696d012c05
952 changed files with 121647 additions and 34334 deletions
7
vendor/github.com/calebcase/tmpfile/tmpfile.go
generated
vendored
7
vendor/github.com/calebcase/tmpfile/tmpfile.go
generated
vendored
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2019 Caleb Case
|
||||
// +build !windows
|
||||
|
||||
package tmpfile
|
||||
|
@ -10,6 +11,12 @@ import (
|
|||
// New creates a new temporary file in the directory dir using ioutil.TempFile
|
||||
// and then unlinks the file with os.Remove to ensure the file is deleted when
|
||||
// the calling process exists.
|
||||
//
|
||||
// If dir is the empty string it will default to using os.TempDir() as the
|
||||
// directory for storing the temporary files.
|
||||
//
|
||||
// The target directory dir must already exist or an error will result. New
|
||||
// does not create or remove the directory dir.
|
||||
func New(dir, pattern string) (f *os.File, err error) {
|
||||
f, err = ioutil.TempFile(dir, pattern)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue