/*
NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2023 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
import (
"errors"
"fmt"
- "io/ioutil"
+ "io/fs"
"os"
"path/filepath"
"strconv"
MCDRxIfis []string
MCDTxIfis map[string]int
+
+ YggdrasilAliases map[string]string
}
func (ctx *Ctx) FindNode(id string) (*Node, error) {
}
return fmt.Errorf("%s: is not a directory", p)
}
- if !os.IsNotExist(err) {
+ if !errors.Is(err, fs.ErrNotExist) {
return err
}
return os.MkdirAll(p, os.FileMode(0777))
return nil, err
}
} else {
- cfgRaw, err := ioutil.ReadFile(cfgPath)
+ cfgRaw, err := os.ReadFile(cfgPath)
if err != nil {
return nil, err
}