- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 92 for readdir (0.29 sec)
-
src/path/filepath/path_test.go
realTmpDir, err := filepath.EvalSymlinks(tmpDir) if err != nil { t.Fatal(err) } realDir := filepath.Join(realTmpDir, "dir") realFile := filepath.Join(realDir, "file") tests := []struct { path, want string }{ {dir, realDir}, {linkToDir, realDir}, {file, realFile}, {link1, realFile}, {link2, realFile}, } for i, test := range tests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:38:19 UTC 2024 - 47.1K bytes - Viewed (0) -
src/internal/fuzz/fuzz.go
// be saved in a MalformedCorpusError and returned, along with the most recent // error. func ReadCorpus(dir string, types []reflect.Type) ([]CorpusEntry, error) { files, err := os.ReadDir(dir) if os.IsNotExist(err) { return nil, nil // No corpus to read } else if err != nil { return nil, fmt.Errorf("reading seed corpus from testdata: %v", err) } var corpus []CorpusEntry var errs []error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 34.1K bytes - Viewed (0) -
pilot/pkg/xds/eds_test.go
} func mustReadfolder(t *testing.T, folder string) string { result := "" fpathRoot := folder if !strings.HasPrefix(fpathRoot, ".") { fpathRoot = filepath.Join(env.IstioSrc, folder) } f, err := os.ReadDir(fpathRoot) if err != nil { t.Fatal(err) } for _, fpath := range f { bytes, err := os.ReadFile(filepath.Join(fpathRoot, fpath.Name())) if err != nil { t.Fatal(err) } result += "---\n"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 20:58:47 UTC 2024 - 39.6K bytes - Viewed (0) -
src/go/doc/reader.go
// AST reader // reader accumulates documentation for a single package. // It modifies the AST: Comments (declaration documentation) // that have been collected by the reader are set to nil // in the respective AST nodes so that they are not printed // twice (once when printing the documentation and once when // printing the corresponding AST node). type reader struct { mode Mode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
internal/hash/reader.go
) // A Reader wraps an io.Reader and computes the MD5 checksum // of the read content as ETag. Optionally, it also computes // the SHA256 checksum of the content. // // If the reference values for the ETag and content SHA26 // are not empty then it will check whether the computed // match the reference values. type Reader struct { src io.Reader bytesRead int64 expectedMin int64
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.8K bytes - Viewed (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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
src/net/textproto/reader.go
// the size of responses. func NewReader(r *bufio.Reader) *Reader { return &Reader{R: r} } // ReadLine reads a single line from r, // eliding the final \n or \r\n from the returned string. func (r *Reader) ReadLine() (string, error) { line, err := r.readLineSlice(-1) return string(line), err } // ReadLineBytes is like [Reader.ReadLine] but returns a []byte instead of a string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 22.1K bytes - Viewed (0) -
src/encoding/csv/reader.go
} // A Reader reads records from a CSV-encoded file. // // As returned by [NewReader], a Reader expects input conforming to RFC 4180. // The exported fields can be changed to customize the details before the // first call to [Reader.Read] or [Reader.ReadAll]. // // The Reader converts all \r\n sequences in its input to plain \n,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:32:28 UTC 2024 - 14.2K bytes - Viewed (0) -
src/image/gif/reader.go
errTooMuch = errors.New("gif: too much image data") errBadPixel = errors.New("gif: invalid pixel value") ) // If the io.Reader does not also have ReadByte, then decode will introduce its own buffering. type reader interface { io.Reader io.ByteReader } // Masks etc. const ( // Fields. fColorTable = 1 << 7 fInterlace = 1 << 6 fColorTableBitsMask = 7
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:15:54 UTC 2024 - 17.5K bytes - Viewed (0) -
src/mdo/reader.vm
} /** * * @param reader a reader object. * @param strict a strict object. * @throws IOException IOException if any. * @throws XMLStreamException XMLStreamException if * any. * @return ${root.name} */ public ${root.name} read(Reader reader, boolean strict) throws IOException, XMLStreamException {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Dec 15 06:33:11 UTC 2023 - 42.1K bytes - Viewed (0)