- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DirEquals (0.08 sec)
-
pkg/file/file.go
return !errors.Is(err, fs.ErrNotExist) } const ( // PrivateFileMode grants owner to read/write a file. PrivateFileMode = 0o600 ) // DirEquals check if two directories are referring to the same directory func DirEquals(a, b string) (bool, error) { aa, err := filepath.Abs(a) if err != nil { return false, err } bb, err := filepath.Abs(b) if err != nil { return false, err
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 21:42:29 UTC 2024 - 3K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache.go
// to the special /etc/certs directory. In this case, we need to ensure we do *not* read from // these files, otherwise we would never rotate. outputToCertificatePath, ferr := file.DirEquals(filepath.Dir(cf.CertificatePath), sc.configOptions.OutputKeyCertToDir) if ferr != nil { return false, nil, ferr } // When there are existing root certificates, or private key and certificate under
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 04 08:29:46 UTC 2024 - 28.2K bytes - Viewed (0)