Hide temporary files on Windows (fixes #146)

This commit is contained in:
Jakob Borg
2014-04-22 14:26:51 +02:00
parent 90d0896848
commit 35ebdc76ff
4 changed files with 75 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
// +build !windows
package main
import (
@@ -21,3 +23,11 @@ func (t tempNamer) TempName(name string) string {
tname := fmt.Sprintf("%s.%s", t.prefix, filepath.Base(name))
return filepath.Join(tdir, tname)
}
func (t tempNamer) Hide(path string) error {
return nil
}
func (t tempNamer) Show(path string) error {
return nil
}