Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 279 for readdir (0.21 sec)

  1. cmd/os_windows.go

    	// baseDir is not honored in windows platform
    	return os.MkdirAll(dirPath, perm)
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, filter func(name string, typ os.FileMode) error) error {
    	// Ensure we don't pick up files as directories.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. cmd/erasure-healing.go

    	var found int
    	var notFound int
    	var foundNotEmpty int
    	var otherFound int
    	for _, readErr := range errs {
    		switch {
    		case readErr == nil:
    			found++
    		case readErr == errFileNotFound || readErr == errVolumeNotFound:
    			notFound++
    		case readErr == errVolumeNotEmpty:
    			foundNotEmpty++
    		default:
    			otherFound++
    		}
    	}
    	found = found + foundNotEmpty + otherFound
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  3. cmd/metacache-stream_test.go

    	if err != io.EOF {
    		t.Fatal(err)
    	}
    }
    
    func Test_metacacheReader_readAll(t *testing.T) {
    	r := loadMetacacheSample(t)
    	defer r.Close()
    	var readErr error
    	objs := make(chan metaCacheEntry, 1)
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		readErr = r.readAll(context.Background(), objs)
    		wg.Done()
    	}()
    	want := loadMetacacheSampleNames
    	i := 0
    	for entry := range objs {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  4. src/compress/bzip2/bit_reader.go

    	r    io.ByteReader
    	n    uint64
    	bits uint
    	err  error
    }
    
    // newBitReader returns a new bitReader reading from r. If r is not
    // already an io.ByteReader, it will be converted via a bufio.Reader.
    func newBitReader(r io.Reader) bitReader {
    	byter, ok := r.(io.ByteReader)
    	if !ok {
    		byter = bufio.NewReader(r)
    	}
    	return bitReader{r: byter}
    }
    
    // ReadBits64 reads the given number of bits and returns them in the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. cmd/storage-errors.go

    var errMoreData = StorageErr("more data was sent than what was advertised")
    
    // indicates readDirFn to return without further applying the fn()
    var errDoneForNow = errors.New("done for now")
    
    // errSkipFile returned by the fn() for readDirFn() when it needs
    // to proceed to next entry.
    var errSkipFile = errors.New("skip this file")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/syscall/syscall_darwin.go

    //sys	pread(fd int, p []byte, offset int64) (n int, err error)
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error)
    //sys	read(fd int, p []byte) (n int, err error)
    //sys	readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
    //sys	Readlink(path string, buf []byte) (n int, err error)
    //sys	Rename(from string, to string) (err error)
    //sys	Revoke(path string) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. cmd/os_unix.go

    	if err != nil {
    		return consumed, nil, typ, err
    	}
    
    	return consumed, nameBuf[:nameLen], typ, nil
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, fn func(name string, typ os.FileMode) error) error {
    	fd, err := openFileWithFD(dirPath, readMode, 0o666)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. pkg/controller/util/selectors/bimultimap.go

    		namespace: key.Namespace,
    	}
    	if l, ok := m.labeledObjects[key]; ok {
    		// Update labeled object.
    		if labelsKey == l.labelsKey {
    			// No change to labels.
    			return
    		}
    		// Delete before readding.
    		m.delete(key)
    	}
    	// Add labeled object.
    	labels = copyLabels(labels)
    	labeledObject := &labeledObject{
    		key:       key,
    		labels:    labels,
    		labelsKey: labelsKey,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 21:41:32 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. src/encoding/base64/base64.go

    	}
    
    	// This code assumes that d.r strips supported whitespace ('\r' and '\n').
    
    	// Refill buffer.
    	for d.nbuf < 4 && d.readErr == nil {
    		nn := len(p) / 3 * 4
    		if nn < 4 {
    			nn = 4
    		}
    		if nn > len(d.buf) {
    			nn = len(d.buf)
    		}
    		nn, d.readErr = d.r.Read(d.buf[d.nbuf:nn])
    		d.nbuf += nn
    	}
    
    	if d.nbuf < 4 {
    		if d.enc.padChar == NoPadding && d.nbuf > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. src/cmd/dist/util.go

    func xremoveall(p string) {
    	if vflag > 2 {
    		errprintf("rm -r %s\n", p)
    	}
    	os.RemoveAll(p)
    }
    
    // xreaddir replaces dst with a list of the names of the files and subdirectories in dir.
    // The names are relative to dir; they are not full paths.
    func xreaddir(dir string) []string {
    	f, err := os.Open(dir)
    	if err != nil {
    		fatalf("%v", err)
    	}
    	defer f.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top