Small cleanups, no change in exec.

This commit is contained in:
Jeffrey Regan
2019-01-14 15:35:03 -08:00
parent 73624da253
commit ea1dd08a8c
5 changed files with 41 additions and 26 deletions

View File

@@ -53,6 +53,11 @@ func (realFS) RemoveAll(name string) error {
// Open delegates to os.Open.
func (realFS) Open(name string) (File, error) { return os.Open(name) }
// EvalSymlinks delegates to filepath.EvalSymlinks.
func (realFS) EvalSymlinks(path string) (string, error) {
return filepath.EvalSymlinks(path)
}
// Exists returns true if os.Stat succeeds.
func (realFS) Exists(name string) bool {
_, err := os.Stat(name)