Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 93 for listdir (0.09 sec)

  1. src/archive/zip/writer.go

    		if err != nil {
    			return err
    		}
    		if !d.IsDir() && !info.Mode().IsRegular() {
    			return errors.New("zip: cannot add non-regular file")
    		}
    		h, err := FileInfoHeader(info)
    		if err != nil {
    			return err
    		}
    		h.Name = name
    		h.Method = Deflate
    		fw, err := w.CreateHeader(h)
    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		f, err := fsys.Open(name)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. cmd/data-scanner.go

    					custom := make(map[string]string)
    					defer stopFn(custom)
    
    					if f.dataUsageScannerDebug {
    						console.Debugf(healObjectsPrefix+" resolved to: %v, dir: %v\n", entry.name, entry.isDir())
    					}
    
    					if entry.isDir() {
    						return
    					}
    
    					// We got an entry which we should be able to heal.
    					fiv, err := entry.fileInfoVersions(bucket)
    					if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  3. api/except.txt

    pkg os, method (*PathError) Unwrap() error
    pkg os, method (FileMode) IsDir() bool
    pkg os, method (FileMode) IsRegular() bool
    pkg os, method (FileMode) Perm() FileMode
    pkg os, method (FileMode) String() string
    pkg os, type FileInfo interface { IsDir, ModTime, Mode, Name, Size, Sys }
    pkg os, type FileInfo interface, IsDir() bool
    pkg os, type FileInfo interface, ModTime() time.Time
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sun Jun 16 23:08:08 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/podcgroupns.go

    	return &PodNetnsEntry{
    		uid:     uid,
    		netns:   netns,
    		netnsfd: fd,
    		inode:   inode,
    	}, nil
    }
    
    func isProcess(entry fs.DirEntry) bool {
    	// check if it is a directory
    	if !entry.IsDir() {
    		return false
    	}
    
    	// check if it is a number
    	if strings.IndexFunc(entry.Name(), isNotNumber) != -1 {
    		return false
    	}
    	return true
    }
    
    func GetFd(f fs.File) (uintptr, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/archive/tar/tar_test.go

    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		if strings.Contains(fi.Name(), "/") {
    			t.Errorf("FileInfo of %q contains slash: %q", v.h.Name, fi.Name())
    		}
    		name := path.Base(v.h.Name)
    		if fi.IsDir() {
    			name += "/"
    		}
    		if got, want := h2.Name, name; got != want {
    			t.Errorf("i=%d: Name: got %v, want %v", i, got, want)
    		}
    		if got, want := h2.Size, v.h.Size; got != want {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    		}
    		// TODO(#49580): Handle symlinks when fs.ReadLinkFS is available.
    		if !d.IsDir() && !info.Mode().IsRegular() {
    			return errors.New("tar: cannot add non-regular file")
    		}
    		h, err := FileInfoHeader(info, "")
    		if err != nil {
    			return err
    		}
    		h.Name = name
    		if err := tw.WriteHeader(h); err != nil {
    			return err
    		}
    		if d.IsDir() {
    			return nil
    		}
    		f, err := fsys.Open(name)
    		if err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. docs/debugging/inspect/export.go

    		sz = st.Size()
    	}
    	defer f.Close()
    	r = f
    
    	zr, e := zip.NewReader(r.(io.ReaderAt), sz)
    	if e != nil {
    		return e
    	}
    	for _, file := range zr.File {
    		if !file.FileInfo().IsDir() && strings.HasSuffix(file.Name, "xl.meta") {
    			r, e := file.Open()
    			if e != nil {
    				return e
    			}
    			// Quote string...
    			b, _ := json.Marshal(file.Name)
    			if hasWritten {
    				fmt.Print(",\n")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 08 15:58:02 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  8. .bazelrc

    build:windows --enable_runfiles
    
    # Default paths for TF_SYSTEM_LIBS
    build:linux --define=PREFIX=/usr
    build:linux --define=LIBDIR=$(PREFIX)/lib
    build:linux --define=INCLUDEDIR=$(PREFIX)/include
    build:linux --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include
    build:macos --define=PREFIX=/usr
    build:macos --define=LIBDIR=$(PREFIX)/lib
    build:macos --define=INCLUDEDIR=$(PREFIX)/include
    build:macos --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 28 22:02:31 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  9. cmd/object-api-datatypes_gen.go

    				if err != nil {
    					err = msgp.WrapError(err, "ActualSize")
    					return
    				}
    			}
    		case "IsDir":
    			z.IsDir, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "IsDir")
    				return
    			}
    		case "ETag":
    			z.ETag, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "ETag")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  10. cmd/metacache-stream.go

    			}
    			r.err = err
    			return metaCacheEntriesSorted{o: res}, err
    		}
    		if len(meta.metadata) == 0 {
    			metaDataPoolPut(meta.metadata)
    			meta.metadata = nil
    		}
    		if !inclDirs && (meta.isDir() || (!inclVersions && meta.isObjectDir() && meta.isLatestDeletemarker())) {
    			continue
    		}
    		if !inclDeleted && meta.isLatestDeletemarker() && meta.isObject() && !meta.isObjectDir() {
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top