- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 91 for readDir (0.21 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/store/queuestore.go
// list will read all entries from disk. // Entries are returned sorted by modtime, oldest first. // Underlying entry list in store is *not* updated. func (store *QueueStore[_]) list() ([]os.DirEntry, error) { files, err := os.ReadDir(store.directory) if err != nil { return nil, err } // Sort the entries. sort.Slice(files, func(i, j int) bool { ii, err := files[i].Info() if err != nil { return false }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.8K bytes - Click Count (0) -
src/archive/zip/reader_test.go
t.Errorf("Opening %q with fs.FS API succeeded", "") } if _, err := r.Open("test.txt"); err != nil { t.Errorf("Error opening %q with fs.FS API: %v", "test.txt", err) } dirEntries, err := fs.ReadDir(r, ".") if err != nil { t.Fatalf("Error reading the root directory: %v", err) } if len(dirEntries) != 1 || dirEntries[0].Name() != "test.txt" { t.Errorf("Unexpected directory entries")
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Oct 17 20:10:27 GMT 2025 - 56.5K bytes - Click Count (0) -
internal/bucket/bandwidth/reader.go
// NewMonitoredReader returns reference to a monitored reader that throttles reads to configured bandwidth for the // bucket. func NewMonitoredReader(ctx context.Context, m *Monitor, r io.Reader, opts *MonitorReaderOptions) *MonitoredReader { reader := MonitoredReader{ r: r, throttle: m.throttle(opts.BucketOptions), m: m, opts: opts, ctx: ctx, } reader.m.init(opts.BucketOptions) return &reader
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3.3K bytes - Click Count (0) -
src/archive/tar/reader.go
"strconv" "strings" "time" ) // Reader provides sequential access to the contents of a tar archive. // Reader.Next advances to the next file in the archive (including the first), // and then Reader can be treated as an io.Reader to access the file's data. type Reader struct { r io.Reader pad int64 // Amount of padding (ignored) after current file entry curr fileReader // Reader for current file entry
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Oct 07 19:46:36 GMT 2025 - 26.9K bytes - Click Count (0) -
cmd/batch-job-common-types_gen.go
err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "Compress") return } z.Compress = nil } else { if z.Compress == nil { z.Compress = new(bool) } *z.Compress, err = dc.ReadBool() if err != nil { err = msgp.WrapError(err, "Compress") return } } case "SmallerThan": if dc.IsNil() { err = dc.ReadNil()Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 21.9K bytes - Click Count (0) -
cmd/storage-rest-common_gen.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.9K bytes - Click Count (0) -
internal/dsync/lock-args_gen.go
return } case "Source": z.Source, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Source") return } case "Quorum": if dc.IsNil() { err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "Quorum") return } z.Quorum = nil } else { if z.Quorum == nil { z.Quorum = new(int) } *z.Quorum, err = dc.ReadInt()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10.2K bytes - Click Count (0) -
cmd/batch-handlers_gen.go
return } case "Started": z.Started, err = dc.ReadTime() if err != nil { err = msgp.WrapError(err, "Started") return } case "Replicate": if dc.IsNil() { err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "Replicate") return } z.Replicate = nil } else { if z.Replicate == nil { z.Replicate = new(BatchJobReplicateV1) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 20.4K bytes - Click Count (0) -
cmd/bucket-stats_gen.go
z.CurrentBandwidthInBytesPerSecond, err = dc.ReadFloat64() if err != nil { err = msgp.WrapError(err, "CurrentBandwidthInBytesPerSecond") return } case "lt": if dc.IsNil() { err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "XferRateLrg") return } z.XferRateLrg = nil } else { if z.XferRateLrg == nil { z.XferRateLrg = new(XferStats) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 57.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java
import org.jline.keymap.KeyMap; import org.jline.reader.Binding; import org.jline.reader.EndOfFileException; import org.jline.reader.LineReader; import org.jline.reader.LineReaderBuilder; import org.jline.reader.MaskingCallback; import org.jline.reader.Reference; import org.jline.reader.UserInterruptException; import org.jline.reader.impl.DefaultHighlighter; import org.jline.reader.impl.DefaultParser;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 06:12:36 GMT 2025 - 10.1K bytes - Click Count (0)