github.com/tilt-dev/wat@v0.0.2-0.20180626175338-9349b638e250/os/temp/dir.go (about) 1 package temp 2 3 // An interface for creating and deleting directories. 4 type Dir interface { 5 // Create a new directory under the current. 6 // 7 // The TempDir implementation will add a nonce to prevent problems 8 // if a directory already exists with this name. The PersistentDir implementation 9 // will just fail hard if a directory already exists. 10 NewDir(name string) (Dir, error) 11 12 Path() string 13 14 TearDown() error 15 }