Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for scandir (0.52 sec)

  1. cmd/metacache-walk.go

    			if sterr == nil && st.Mode().IsRegular() {
    				return errFileNotFound
    			}
    		}
    	}
    
    	prefix := opts.FilterPrefix
    	var scanDir func(path string) error
    
    	scanDir = func(current string) error {
    		// Skip forward, if requested...
    		sb := bytebufferpool.Get()
    		defer func() {
    			sb.Reset()
    			bytebufferpool.Put(sb)
    		}()
    
    		forward := ""
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                           char*** entries, TF_Status* status) {
      struct dirent** dir_entries = nullptr;
      /* we don't promise entries would be sorted */
      int num_entries =
          scandir(path, &dir_entries, RemoveSpecialDirectoryEntries, nullptr);
      if (num_entries < 0) {
        TF_SetStatusFromIOError(status, errno, path);
      } else {
        *entries = static_cast<char**>(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. src/cmd/api/main_test.go

    				return pkg, nil
    			}
    		}
    	}
    
    	info, err := context.ImportDir(dir, 0)
    	if err != nil {
    		if _, nogo := err.(*build.NoGoError); nogo {
    			return nil, err
    		}
    		log.Fatalf("pkg %q, dir %q: ScanDir: %v", name, dir, err)
    	}
    
    	// Save tags list first time we see a directory.
    	if usePkgCache {
    		if _, ok := pkgTags[dir]; !ok {
    			pkgTags[dir] = info.AllTags
    			key = tagKey(dir, context, info.AllTags)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  4. cmd/data-scanner.go

    				BucketName: f.root,
    				Object: ObjectInfo{
    					Name: prefixName,
    					Size: int64(totalFolders),
    				},
    				UserAgent: "Scanner",
    				Host:      globalMinioHost,
    			})
    			auditLogInternal(context.Background(), AuditLogOptions{
    				Event:   "scanner:manyprefixes",
    				APIName: "Scanner",
    				Bucket:  f.root,
    				Object:  prefixName,
    				Tags: map[string]interface{}{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  5. tests/scanner_valuer_test.go

    	}
    
    	if err := DB.Create(&data).Error; err != nil {
    		t.Fatalf("No error should happened when create scanner valuer struct, but got %v", err)
    	}
    
    	var result ScannerValuerStruct
    
    	if err := DB.Find(&result, "id = ?", data.ID).Error; err != nil {
    		t.Fatalf("no error should happen when query scanner, valuer struct, but got %v", err)
    	}
    
    	if result.ExampleStructPtr.Val != "value2" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  6. src/bufio/scan.go

    // Scan advances the [Scanner] to the next token, which will then be
    // available through the [Scanner.Bytes] or [Scanner.Text] method. It returns false when
    // there are no more tokens, either by reaching the end of the input or an error.
    // After Scan returns false, the [Scanner.Err] method will return any error that
    // occurred during scanning, except that if it was [io.EOF], [Scanner.Err]
    // will return nil.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    			}
    			in.beginningOfLine = in.hash()
    			in.text = "#"
    			return '#'
    
    		case scanner.Ident:
    			// Is it a macro name?
    			name := in.Stack.Text()
    			macro := in.macros[name]
    			if macro != nil {
    				nesting++
    				in.invokeMacro(macro)
    				continue
    			}
    			fallthrough
    		default:
    			if tok == scanner.EOF && len(in.ifdefStack) > 0 {
    				// We're skipping text but have run out of input with no #endif.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. docs/config/README.md

    usage calculation. The scanner adapts to the system speed and completely pauses when the system is under load. It is possible to adjust the speed of the scanner and thereby the latency of updates being reflected. The delays between each operation of the scanner can be adjusted by the `mc admin config set alias/ delay=15.0`. By default the value is `10.0`. This means the scanner will sleep *10x* the time each operation takes.
    
    In most setups this will keep the scanner slow enough to not impact...
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 11 21:48:54 GMT 2023
    - 17.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/parse.go

    		return
    	}
    
    	// Constant.
    	haveConstant := false
    	switch tok.ScanToken {
    	case scanner.Int, scanner.Float, scanner.String, scanner.Char, '+', '-', '~':
    		haveConstant = true
    	case '(':
    		// Could be parenthesized expression or (R). Must be something, though.
    		tok := p.next()
    		if tok.ScanToken == scanner.EOF {
    			p.errorf("missing right parenthesis")
    			return
    		}
    		rname := tok.String()
    		p.back()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/bufio/scan_test.go

    	scanner.Split(ScanWords)
    	if !scanner.Scan() {
    		t.Fatalf("scan failed: %v", scanner.Err())
    	}
    	if token := scanner.Text(); token != word {
    		t.Fatalf("unexpected token: %v", token)
    	}
    }
    
    // Test that empty tokens, including at end of line or end of file, are found by the scanner.
    // Issue 8672: Could miss final empty token.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top