- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for Dir (0.15 sec)
-
src/archive/zip/reader.go
r.fileList[idx].isDup = true continue } if idx, ok := knownDirs[name]; ok { r.fileList[idx].isDup = true continue } for dir := path.Dir(name); dir != "."; dir = path.Dir(dir) { dirs[dir] = true } idx := len(r.fileList) entry := fileListEntry{ name: name, file: file, isDir: isDir, } r.fileList = append(r.fileList, entry)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 27.7K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
peekText string } // NewInput returns an Input from the given path. func NewInput(name string) *Input { return &Input{ // include directories: look in source dir, then -I directories. includes: append([]string{filepath.Dir(name)}, flags.I...), beginningOfLine: true, macros: predefine(flags.D), } } // predefine installs the macros set by the -D flag on the command line.
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) -
src/archive/zip/writer_test.go
t.Fatal(err) } if buf.Len() == 0 { t.Fatal("No bytes written after Flush") } } func TestWriterDir(t *testing.T) { w := NewWriter(io.Discard) dw, err := w.Create("dir/") if err != nil { t.Fatal(err) } if _, err := dw.Write(nil); err != nil { t.Errorf("Write(nil) to directory: got %v, want nil", err) } if _, err := dw.Write([]byte("hello")); err == nil {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 15 19:04:06 GMT 2023 - 14.1K bytes - Viewed (0) -
src/cmd/api/main_test.go
if usePkgCache { if tags, ok := pkgTags[dir]; ok { key = tagKey(dir, context, tags) if pkg := pkgCache[key]; pkg != nil { w.imported[name] = pkg 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) }
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) -
src/archive/tar/writer.go
spb = append(spb, zeroBlock[:pad]...) hdr.Size += int64(len(spb)) // Accounts for encoded sparse map // Add and modify appropriate PAX records. dir, file := path.Split(realName) hdr.Name = path.Join(dir, "GNUSparseFile.0", file) paxHdrs[paxGNUSparseMajor] = "1" paxHdrs[paxGNUSparseMinor] = "0" paxHdrs[paxGNUSparseName] = realName
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 19.6K bytes - Viewed (0) -
misc/go_android_exec/main.go
// reach out into testdata from parent packages. func adbCopyTree(deviceCwd, subdir string) error { dir := "" for { for _, name := range []string{"testdata", "go.mod", "go.sum"} { hostPath := filepath.Join(dir, name) if _, err := os.Stat(hostPath); err != nil { continue } devicePath := path.Join(deviceCwd, dir) if err := adb("exec-out", "mkdir", "-p", devicePath); err != nil { return err }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Aug 21 17:46:57 GMT 2023 - 15.3K bytes - Viewed (0) -
src/archive/zip/writer.go
// CreateHeader and CreateRaw. func (w *Writer) prepare(fh *FileHeader) error { if w.last != nil && !w.last.closed { if err := w.last.close(); err != nil { return err } } if len(w.dir) > 0 && w.dir[len(w.dir)-1].FileHeader == fh { // See https://golang.org/issue/11144 confusion. return errors.New("archive/zip: invalid duplicate FileHeader") } return nil }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 04 14:28:57 GMT 2024 - 19.3K bytes - Viewed (0) -
src/archive/tar/writer_test.go
testClose{nil}, }, }, { // Automatically promote zero value of Typeflag depending on the name. file: "testdata/file-and-dir.tar", tests: []testFnc{ testHeader{Header{Name: "small.txt", Size: 5}, nil}, testWrite{"Kilts", 5, nil}, testHeader{Header{Name: "dir/"}, nil}, testClose{nil}, }, }} equalError := func(x, y error) bool { _, ok1 := x.(headerError)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Feb 27 16:39:23 GMT 2024 - 38.7K bytes - Viewed (0) -
src/archive/tar/tar_test.go
Mode: 0660, Size: 0, ModTime: time.Unix(1360578954, 0), Typeflag: TypeBlock, }, fm: 0660 | fs.ModeDevice, }, { // directory. h: &Header{ Name: "dir/", Mode: 0755, Size: 0, ModTime: time.Unix(1360601116, 0), Typeflag: TypeDir, }, fm: 0755 | fs.ModeDir, }, { // fifo node. h: &Header{ Name: "dev/initctl",
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/arm64error.s
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Dec 08 03:28:17 GMT 2023 - 37.8K bytes - Viewed (0)