File: isnotexist_windows.go

package info (click to toggle)
golang-github-juju-testing 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: makefile: 6
file content (14 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2014 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.

package filetesting

import (
	"os"
)

// isNotExist returns true if the error is consistent with an attempt to
// reference a file that does not exist.
func isNotExist(err error) bool {
	return os.IsNotExist(err)
}