diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-10-19 12:44:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 12:44:17 +0200 |
commit | 7bd4f1d2b796de5c86466b40eaa561d4fd27931b (patch) | |
tree | 8699f5ff6df8cb3fbdf8d2b9df0adf975c60d542 /utils/fs/fs.go | |
parent | c56b22fc73d0ca3c4d44872e8b16370e041dcd92 (diff) | |
download | go-git-7bd4f1d2b796de5c86466b40eaa561d4fd27931b.tar.gz |
utils: fs.TempFile (#88)
* utils: fs generic TestSuite
* fs: fs.TempFile
* utils: fs small changes requested
* utils: fs, test fs.Create overwriting files
Diffstat (limited to 'utils/fs/fs.go')
-rw-r--r-- | utils/fs/fs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/fs/fs.go b/utils/fs/fs.go index 3bcf88f..9be0f88 100644 --- a/utils/fs/fs.go +++ b/utils/fs/fs.go @@ -16,9 +16,10 @@ var ( type Filesystem interface { Create(filename string) (File, error) Open(filename string) (File, error) - Rename(from, to string) error Stat(filename string) (FileInfo, error) ReadDir(path string) ([]FileInfo, error) + TempFile(dir, prefix string) (File, error) + Rename(from, to string) error Join(elem ...string) string Dir(path string) Filesystem Base() string |