Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 467 for readFile (0.27 sec)

  1. internal/s3select/csv/reader_contrib_test.go

    		}
    	}
    }
    
    type tester interface {
    	Fatal(...interface{})
    }
    
    func openTestFile(t tester, file string) []byte {
    	f, err := os.ReadFile("testdata/testdata.zip")
    	if err != nil {
    		t.Fatal(err)
    	}
    	z, err := zip.NewReader(bytes.NewReader(f), int64(len(f)))
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, f := range z.File {
    		if f.Name == file {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
  2. cmd/server-main.go

    		ctxt.SFTP = append(ctxt.SFTP, fmt.Sprintf("ssh-private-key=%s", cf.Options.SFTP.SSHPrivateKey))
    	}
    }
    
    func mergeServerCtxtFromConfigFile(configFile string, ctxt *serverCtxt) error {
    	rd, err := xioutil.ReadFile(configFile)
    	if err != nil {
    		return err
    	}
    
    	cfReader := bytes.NewReader(rd)
    
    	cv := config.ServerConfigVersion{}
    	if err = yaml.Unmarshal(rd, &cv); err != nil {
    		return err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
  3. src/cmd/api/main_test.go

    	"os.FileInfo", "fs.FileInfo",
    	"os.FileMode", "fs.FileMode",
    	"os.PathError", "fs.PathError",
    )
    
    func fileFeatures(filename string, needApproval bool) []string {
    	bs, err := os.ReadFile(filename)
    	if err != nil {
    		log.Fatal(err)
    	}
    	s := string(bs)
    
    	// Diagnose common mistakes people make,
    	// since there is no apifmt to format these files.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    	var ss []string
    	for _, p := range []string{
    		"testdata/gnu.tar",
    		"testdata/ustar-file-reg.tar",
    		"testdata/pax-path-hdr.tar",
    		"testdata/sparse-formats.tar",
    	} {
    		buf, err := os.ReadFile(p)
    		if err != nil {
    			t.Fatalf("unexpected error: %v", err)
    		}
    		ss = append(ss, string(buf))
    	}
    
    	data1, data2, pax, sparse := ss[0], ss[1], ss[2], ss[3]
    	data2 += strings.Repeat("\x00", 10*512)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  5. cmd/storage-rest-server.go

    		}
    		verifier = NewBitrotVerifier(BitrotAlgorithmFromString(r.Form.Get(storageRESTBitrotAlgo)), hash)
    	}
    	buf := make([]byte, length)
    	defer metaDataPoolPut(buf) // Reuse if we can.
    	_, err = s.getStorage().ReadFile(r.Context(), volume, filePath, int64(offset), buf, verifier)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	w.Header().Set(xhttp.ContentLength, strconv.Itoa(len(buf)))
    	w.Write(buf)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  6. cmd/erasure-object_test.go

    		})
    		switch statErr.(type) {
    		case VersionNotFound:
    		default:
    			t.Fatalf("Object %s is not removed", test.bucket+SlashSeparator+test.object)
    		}
    	}
    
    	if _, err = os.ReadFile(pathJoin(fsDirs[0], bucketName, "dir/obj1", "xl.meta")); err == nil {
    		t.Fatalf("xl.meta still present after removal")
    	}
    }
    
    func TestErasureDeleteObjectsErasureSet(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. api/go1.16.txt

    pkg io/fs, type ReadDirFile interface, Stat() (FileInfo, error)
    pkg io/fs, type ReadFileFS interface { Open, ReadFile }
    pkg io/fs, type ReadFileFS interface, Open(string) (File, error)
    pkg io/fs, type ReadFileFS interface, ReadFile(string) ([]uint8, error)
    pkg io/fs, type StatFS interface { Open, Stat }
    pkg io/fs, type StatFS interface, Open(string) (File, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/LineReader.java

              lines.add(line);
            }
          };
    
      /** Creates a new instance that will read lines from the given {@code Readable} object. */
      public LineReader(Readable readable) {
        this.readable = checkNotNull(readable);
        this.reader = (readable instanceof Reader) ? (Reader) readable : null;
      }
    
      /**
       * Reads a line of text. A line is considered to be terminated by any one of a line feed ({@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/CharStreams.java

          Readable readable, LineProcessor<T> processor) throws IOException {
        checkNotNull(readable);
        checkNotNull(processor);
    
        LineReader lineReader = new LineReader(readable);
        String line;
        while ((line = lineReader.readLine()) != null) {
          if (!processor.processLine(line)) {
            break;
          }
        }
        return processor.getResult();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/LineBufferTest.java

        List<String> lines = Lists.newArrayList();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        return lines;
      }
    
      // Returns a Readable that is *not* a Reader.
      private static Readable getChunkedReadable(String input, int chunk) {
        final Reader reader = getChunkedReader(input, chunk);
        return new Readable() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top