- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for MkdirAll (0.1 sec)
-
cmd/os-reliable.go
i++ continue } } break } return err } // Wrapper functions to os.MkdirAll, which calls reliableMkdirAll // this is to ensure that if there is a racy parent directory // delete in between we can simply retry the operation. func mkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) { if dirPath == "" { return errInvalidArgument }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Apr 22 17:49:30 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/os-instrumented.go
func Mkdir(dirPath string, mode os.FileMode) (err error) { defer updateOSMetrics(osMetricMkdir, dirPath)(err) return os.Mkdir(dirPath, mode) } // MkdirAll captures time taken to call os.MkdirAll func MkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) { defer updateOSMetrics(osMetricMkdirAll, dirPath)(err) return osMkdirAll(dirPath, mode, baseDir) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 15 01:09:38 UTC 2024 - 6.3K bytes - Viewed (0) -
cni/pkg/pluginlistener/listener.go
// Anything other than "file not found" is an error. return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err) } // Attempt to create the folder in case it doesn't exist if err := os.MkdirAll(filepath.Dir(path), 0o750); err != nil { // If we cannot create it, just warn here - we will fail later if there is a real error log.Warnf("Failed to create directory for %v: %v", path, err) } var err error
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 1.7K bytes - Viewed (0) -
cmd/os_unix.go
// along with any necessary parents, and returns nil, // or else returns an error. // The permission bits perm (before umask) are used for all // directories that MkdirAll creates. // If path is already a directory, MkdirAll does nothing // and returns nil. func osMkdirAll(dirPath string, perm os.FileMode, baseDir string) error { if baseDir != "" { if strings.HasPrefix(baseDir, dirPath) { return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.3K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
if name == "null" { name = v0 } f := filemap[file][name] if f != "" { fn = f + ".data" err = os.MkdirAll(filepath.Dir(fn), os.ModePerm) if err != nil { fmt.Println("MkdirAll:", filepath.Dir(fn), err) } err = os.WriteFile(fn+".json", []byte(filemap[file][name+".json"]), os.ModePerm) combineFiles[name] = append(combineFiles[name], fn)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0) -
misc/ios/go_ios_exec.go
if err := installSimulator(appdir); err != nil { return err } return runSimulator(appdir, bundleID, os.Args[2:]) } func assembleApp(appdir, bin string) error { if err := os.MkdirAll(appdir, 0755); err != nil { return err } if err := cp(filepath.Join(appdir, "gotest"), bin); err != nil { return err } pkgpath, err := copyLocalData(appdir) if err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jun 18 16:32:49 UTC 2024 - 8.7K bytes - Viewed (0) -
internal/store/queuestore.go
entries: make(map[string]int64, limit), } } // Open - Creates the directory if not present. func (store *QueueStore[_]) Open() error { store.Lock() defer store.Unlock() if err := os.MkdirAll(store.directory, os.FileMode(0o770)); err != nil { return err } files, err := store.list() if err != nil { return err } for _, file := range files { if file.IsDir() { continue }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
cmd/data-usage_test.go
t.Error("got histogram", e.ObjSizes, "want", w.oSizes) } }) } } func createUsageTestFiles(t *testing.T, base, bucket string, files []usageTestFile) { for _, f := range files { err := os.MkdirAll(filepath.Dir(filepath.Join(base, bucket, f.name)), os.ModePerm) if err != nil { t.Fatal(err) } err = os.WriteFile(filepath.Join(base, bucket, f.name), make([]byte, f.size), os.ModePerm) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 14.7K bytes - Viewed (0) -
cmd/prepare-storage.go
storageLogIf(GlobalContext, fmt.Errorf("unable to rename (%s -> %s) %w, drive may be faulty, please investigate", pathJoin(diskPath, minioMetaTmpBucket), tmpOld, osErrToFileErr(err))) } if err := mkdirAll(pathJoin(diskPath, minioMetaTmpDeletedBucket), 0o777, diskPath); err != nil { storageLogIf(GlobalContext, fmt.Errorf("unable to create (%s) %w, drive may be faulty, please investigate", pathJoin(diskPath, minioMetaTmpBucket),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 11.1K bytes - Viewed (1) -
internal/logger/logrotate.go
} w.f = f return nil } // NewDir creates a new concurrency safe Writer which performs log rotation. func NewDir(opts Options) (io.WriteCloser, error) { if err := os.MkdirAll(opts.Directory, os.ModePerm); err != nil { return nil, fmt.Errorf("directory %v does not exist and could not be created: %w", opts.Directory, err) } if opts.FileNameFunc == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0)