"errors"
"fmt"
"io"
+ "io/fs"
"log"
"os"
"path"
FileExistsCache[p] = true
return true
}
- if os.IsNotExist(err) {
+ if errors.Is(err, fs.ErrNotExist) {
FileExistsCache[p] = false
}
return false
inode, err := inodeFromFileByPath(path.Join(cwd, dep))
if err != nil {
- if os.IsNotExist(err) {
+ if errors.Is(err, fs.ErrNotExist) {
tracef(CDebug, "ood: %s%s -> %s: not exists", indent, tgtOrig, dep)
ood = true
OODCache[path.Join(cwd, dep)] = ood