Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for link (0.15 sec)

  1. src/archive/tar/tar_test.go

    	}
    }
    
    func TestFileInfoHeaderSymlink(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    
    	tmpdir := t.TempDir()
    
    	link := filepath.Join(tmpdir, "link")
    	target := tmpdir
    	if err := os.Symlink(target, link); err != nil {
    		t.Fatal(err)
    	}
    	fi, err := os.Lstat(link)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	h, err := FileInfoHeader(fi, target)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    		file  string // Optional filename of expected output
    		tests []testFnc
    	}{{
    		// The writer test file was produced with this command:
    		// tar (GNU tar) 1.26
    		//   ln -s small.txt link.txt
    		//   tar -b 1 --format=ustar -c -f writer.tar small.txt small2.txt link.txt
    		file: "testdata/writer.tar",
    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "small.txt",
    				Size:     5,
    				Mode:     0640,
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  3. internal/config/errors.go

    Refer to the link https://github.com/minio/minio/tree/master/docs/erasure/storage-class for more information`,
    	)
    
    	ErrUnexpectedBackendVersion = newErrFn(
    		"Backend version seems to be too recent",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 18 22:25:32 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. cmd/sftp-server-driver.go

    	stopFn := globalSftpMetrics.log(r, f.AccessKey())
    	defer stopFn(err)
    
    	clnt, err := f.getMinIOClient()
    	if err != nil {
    		return err
    	}
    
    	switch r.Method {
    	case "Setstat", "Rename", "Link", "Symlink":
    		return NotImplemented{}
    
    	case "Rmdir":
    		bucket, prefix := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			return errors.New("deleting all buckets not allowed")
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  5. src/bufio/scan_test.go

    			j++
    		} else {
    			j--
    		}
    		line := tmp.String() // We use the string-valued token here, for variety.
    		if s.Text() != line {
    			t.Errorf("%d: bad line: %d %d\n%.100q\n%.100q\n", lineNum, len(s.Bytes()), len(line), s.Text(), line)
    		}
    	}
    	err := s.Err()
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    // Test that the line splitter errors out on a long line.
    func TestScanLineTooLong(t *testing.T) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    		return line, true, nil
    	}
    
    	if len(line) == 0 {
    		if err != nil {
    			line = nil
    		}
    		return
    	}
    	err = nil
    
    	if line[len(line)-1] == '\n' {
    		drop := 1
    		if len(line) > 1 && line[len(line)-2] == '\r' {
    			drop = 2
    		}
    		line = line[:len(line)-drop]
    	}
    	return
    }
    
    // collectFragments reads until the first occurrence of delim in the input. It
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  7. src/cmd/addr2line/main.go

    //
    // Usage:
    //
    //	go tool addr2line binary
    //
    // Addr2line reads hexadecimal addresses, one per line and with optional 0x prefix,
    // from standard input. For each input address, addr2line prints two output lines,
    // first the name of the function containing the address and second the file:line
    // of the source code corresponding to that address.
    //
    // This tool is intended for use only by pprof; its interface may change or
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/slice.go

    	"cmd/internal/src"
    )
    
    // A Slice reads from a slice of Tokens.
    type Slice struct {
    	tokens []Token
    	base   *src.PosBase
    	line   int
    	pos    int
    }
    
    func NewSlice(base *src.PosBase, line int, tokens []Token) *Slice {
    	return &Slice{
    		tokens: tokens,
    		base:   base,
    		line:   line,
    		pos:    -1, // Next will advance to zero.
    	}
    }
    
    func (s *Slice) Next() ScanToken {
    	s.pos++
    	if s.pos >= len(s.tokens) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/stack.go

    }
    
    func (s *Stack) Base() *src.PosBase {
    	return s.tr[len(s.tr)-1].Base()
    }
    
    func (s *Stack) SetBase(base *src.PosBase) {
    	s.tr[len(s.tr)-1].SetBase(base)
    }
    
    func (s *Stack) Line() int {
    	return s.tr[len(s.tr)-1].Line()
    }
    
    func (s *Stack) Col() int {
    	return s.tr[len(s.tr)-1].Col()
    }
    
    func (s *Stack) Close() { // Unused.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Jan 09 22:33:23 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/api/main_test.go

    		log.Printf("%s: contains a blank line", filename)
    		exitCode = 1
    	}
    	if s == "" {
    		log.Printf("%s: empty file", filename)
    		exitCode = 1
    	} else if s[len(s)-1] != '\n' {
    		log.Printf("%s: missing final newline", filename)
    		exitCode = 1
    	}
    	s = aliasReplacer.Replace(s)
    	lines := strings.Split(s, "\n")
    	var nonblank []string
    	for i, line := range lines {
    		line = strings.TrimSpace(line)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top