Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use os.TempDir() to determine temporary directory.

This allows overrides through environment variable $TMPDIR.
  • Loading branch information...
commit f0d8d537d07905b7b160b7af65e286b68d22cc91 1 parent cb86654
@hanwen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  fs/classic.go
View
2  fs/classic.go
@@ -330,7 +330,7 @@ func (fs *DeviceFs) ensureFreeSpace(want int64) error {
func (fs *DeviceFs) setupClassic() error {
if fs.options.Dir == "" {
var err error
- fs.options.Dir, err = ioutil.TempDir("", "go-mtpfs")
+ fs.options.Dir, err = ioutil.TempDir(os.TempDir(), "go-mtpfs")
if err != nil {
return err
}
Please sign in to comment.
Something went wrong with that request. Please try again.