- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 58 for IsDir (0.05 sec)
-
internal/store/queuestore.go
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 } if fi, err := file.Info(); err == nil { store.entries[file.Name()] = fi.ModTime().UnixNano() } } return nil } // Delete - Remove the store directory from disk
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 19.9K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
} r = os.Stdin readers = append(readers, local.ReaderSource{Name: f, Reader: r}) continue } fi, err := os.Stat(f) if err != nil { return nil, err } if fi.IsDir() { dirReaders, err := gatherFilesInDirectory(cmd, f) if err != nil { return nil, err } readers = append(readers, dirReaders...) } else { if !isValidFile(f) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 31 06:53:50 UTC 2024 - 17.6K bytes - Viewed (0) -
cmd/admin-handlers.go
mode os.FileMode modTime time.Time isDir bool sys interface{} } func (f dummyFileInfo) Name() string { return f.name } func (f dummyFileInfo) Size() int64 { return f.size } func (f dummyFileInfo) Mode() os.FileMode { return f.mode } func (f dummyFileInfo) ModTime() time.Time { return f.modTime } func (f dummyFileInfo) IsDir() bool { return f.isDir }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 99.7K bytes - Viewed (0) -
src/cmd/api/api_test.go
testenv.MustHaveGoBuild(t) td, err := os.Open("testdata/src/pkg") if err != nil { t.Fatal(err) } fis, err := td.Readdir(0) if err != nil { t.Fatal(err) } for _, fi := range fis { if !fi.IsDir() { continue } // TODO(gri) remove extra pkg directory eventually goldenFile := filepath.Join("testdata", "src", "pkg", fi.Name(), "golden.txt") w := NewWalker(nil, "testdata/src/pkg")
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jan 04 17:31:12 UTC 2024 - 7.1K bytes - Viewed (0) -
cmd/xl-storage.go
return path, err } if osIsNotExist(err) { // Disk not found create it. if err = mkdirAll(path, 0o777, ""); err != nil { return path, err } } if fi != nil && !fi.IsDir() { return path, errDiskNotDir } return path, nil } // Make Erasure backend meta volumes. func makeFormatErasureMetaVolumes(disk StorageAPI) error { if disk == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0) -
internal/lock/lock_windows.go
} if err = lockFile(syscall.Handle(f.Fd()), lockType); err != nil { f.Close() return nil, err } st, err := os.Stat(path) if err != nil { f.Close() return nil, err } if st.IsDir() { f.Close() return nil, &os.PathError{ Op: "open", Path: path, Err: syscall.EISDIR, } } return &LockedFile{File: f}, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 7.9K bytes - Viewed (0) -
cmd/global-heal.go
healEntry := func(bucket string, entry metaCacheEntry) { defer jt.Give() if entry.name == "" && len(entry.metadata) == 0 { // ignore entries that don't have metadata. return } if entry.isDir() { // ignore healing entry.name's with `/` suffix. return } // We might land at .metacache, .trash, .multipart // no need to heal them skip, only when bucket // is '.minio.sys'
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 16.3K bytes - Viewed (0) -
misc/ios/go_ios_exec.go
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jun 18 16:32:49 UTC 2024 - 8.7K bytes - Viewed (0) -
src/archive/zip/writer.go
if err != nil { return err } if !d.IsDir() && !info.Mode().IsRegular() { return errors.New("zip: cannot add non-regular file") } h, err := FileInfoHeader(info) if err != nil { return err } h.Name = name h.Method = Deflate fw, err := w.CreateHeader(h) if err != nil { return err } if d.IsDir() { return nil } f, err := fsys.Open(name)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 19.4K bytes - Viewed (0)