Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 239 for readdir (0.22 sec)

  1. internal/store/queuestore.go

    // list will read all entries from disk.
    // Entries are returned sorted by modtime, oldest first.
    // Underlying entry list in store is *not* updated.
    func (store *QueueStore[_]) list() ([]os.DirEntry, error) {
    	files, err := os.ReadDir(store.directory)
    	if err != nil {
    		return nil, err
    	}
    
    	// Sort the entries.
    	sort.Slice(files, func(i, j int) bool {
    		ii, err := files[i].Info()
    		if err != nil {
    			return false
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. misc/ios/go_ios_exec.go

    func copyLocalDir(dst, src string) error {
    	if err := os.Mkdir(dst, 0755); err != nil {
    		return err
    	}
    
    	d, err := os.Open(src)
    	if err != nil {
    		return err
    	}
    	defer d.Close()
    	fi, err := d.Readdir(-1)
    	if err != nil {
    		return err
    	}
    
    	for _, f := range fi {
    		if f.IsDir() {
    			if f.Name() == "testdata" {
    				if err := cp(dst, filepath.Join(src, f.Name())); err != nil {
    					return err
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. cmd/metacache-walk.go

    	// Limit the number of returned objects if > 0.
    	Limit int
    
    	// DiskID contains the disk ID of the disk.
    	// Leave empty to not check disk ID.
    	DiskID string
    }
    
    // supported FS for Nlink optimization in readdir.
    const (
    	xfs  = "XFS"
    	ext4 = "EXT4"
    )
    
    // WalkDir will traverse a directory and return all entries found.
    // On success a sorted meta cache stream will be returned.
    // Metadata has data stripped, if any.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. lib/wasm/wasm_exec.js

    			mkdir(path, perm, callback) { callback(enosys()); },
    			open(path, flags, mode, callback) { callback(enosys()); },
    			read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
    			readdir(path, callback) { callback(enosys()); },
    			readlink(path, callback) { callback(enosys()); },
    			rename(from, to, callback) { callback(enosys()); },
    			rmdir(path, callback) { callback(enosys()); },
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Aug 30 19:15:21 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. cmd/s3-zip-handlers.go

    			objSize, err = gr.ObjInfo.DecryptedSize()
    			if err != nil {
    				return nil, ObjectInfo{}, err
    			}
    		} else {
    			objSize = gr.ObjInfo.Size
    		}
    
    		files, err := zipindex.ReadDir(b[len(b)-size:], objSize, nil)
    		if err == nil {
    			return files, gr.ObjInfo, nil
    		}
    		var terr zipindex.ErrNeedMoreData
    		if errors.As(err, &terr) {
    			size = int(terr.FromEnd)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    // the [ErrInsecurePath] error and use the returned reader.
    func NewReader(r io.ReaderAt, size int64) (*Reader, error) {
    	if size < 0 {
    		return nil, errors.New("zip: size cannot be negative")
    	}
    	zr := new(Reader)
    	var err error
    	if err = zr.init(r, size); err != nil && err != ErrInsecurePath {
    		return nil, err
    	}
    	return zr, err
    }
    
    func (r *Reader) init(rdr io.ReaderAt, size int64) error {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. cmd/common-main.go

    	// If so, we try to add it to certificate manager.
    	root, err := Open(globalCertsDir.Get())
    	if err != nil {
    		return nil, nil, false, err
    	}
    	defer root.Close()
    
    	files, err := root.Readdir(-1)
    	if err != nil {
    		return nil, nil, false, err
    	}
    	for _, file := range files {
    		// Ignore all
    		// - regular files
    		// - "CAs" directory
    		// - any directory which starts with ".."
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    		// to verify for legacy version.
    		if formatLegacy {
    			// We only need this code if we are moving
    			// from `xl.json` to `xl.meta`, we can avoid
    			// one extra readdir operation here for all
    			// new deployments.
    			entries, err := readDir(currentDataPath)
    			if err != nil && err != errFileNotFound {
    				return res, osErrToFileErr(err)
    			}
    			for _, entry := range entries {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  9. api/except.txt

    pkg os, func OpenFile(string, int, FileMode) (*File, error)
    pkg os, func SameFile(FileInfo, FileInfo) bool
    pkg os, func Stat(string) (FileInfo, error)
    pkg os, method (*File) Chmod(FileMode) error
    pkg os, method (*File) Readdir(int) ([]FileInfo, error)
    pkg os, method (*File) Stat() (FileInfo, error)
    pkg os, method (*PathError) Error() string
    pkg os, method (*PathError) Timeout() bool
    pkg os, method (*PathError) Unwrap() error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sun Jun 16 23:08:08 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  10. src/archive/zip/reader_test.go

    		t.Errorf("Opening %q with fs.FS API succeeded", "")
    	}
    	if _, err := r.Open("test.txt"); err != nil {
    		t.Errorf("Error opening %q with fs.FS API: %v", "test.txt", err)
    	}
    	dirEntries, err := fs.ReadDir(r, ".")
    	if err != nil {
    		t.Fatalf("Error reading the root directory: %v", err)
    	}
    	if len(dirEntries) != 1 || dirEntries[0].Name() != "test.txt" {
    		t.Errorf("Unexpected directory entries")
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
Back to top