Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for isdir (0.13 sec)

  1. cmd/xl-storage.go

    		return nil, time.Time{}, err
    	}
    	defer f.Close()
    	stat, err := f.Stat()
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	if stat.IsDir() {
    		return nil, time.Time{}, &os.PathError{
    			Op:   "open",
    			Path: itemPath,
    			Err:  syscall.EISDIR,
    		}
    	}
    	buf, err := readXLMetaNoData(f, stat.Size())
    	if err != nil {
    		return nil, stat.ModTime().UTC(), fmt.Errorf("%w -> %s", err, itemPath)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  2. 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")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
  3. cmd/sftp-server-driver.go

    					isDir: true,
    				}}, nil
    			}
    			return nil, err
    		}
    
    		isDir := strings.HasSuffix(objInfo.Key, SlashSeparator)
    		return listerAt{&minioFileInfo{
    			p:     pathClean(object),
    			info:  objInfo,
    			isDir: isDir,
    		}}, nil
    	}
    
    	return nil, NotImplemented{}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  4. internal/lock/lock_windows.go

    		f.Close()
    		return nil, err
    	}
    
    	st, err := os.Stat(path)
    	if err != nil {
    		f.Close()
    		return nil, err
    	}
    
    	if st.IsDir() {
    		f.Close()
    		return nil, &os.PathError{
    			Op:   "open",
    			Path: path,
    			Err:  syscall.EISDIR,
    		}
    	}
    
    	return &LockedFile{File: f}, nil
    }
    
    // TryLockedOpenFile - tries a new write lock, functionality
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  5. cmd/os_other.go

    						isSysErrTooManySymlinks(err) {
    						continue
    					}
    					return nil, err
    				}
    
    				// Ignore symlinked directories.
    				if !opts.followDirSymlink && fi.IsDir() {
    					continue
    				}
    			}
    
    			if fi.IsDir() {
    				// Append SlashSeparator instead of "\" so that sorting is achieved as expected.
    				entries = append(entries, fi.Name()+SlashSeparator)
    			} else if fi.Mode().IsRegular() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. istioctl/pkg/workload/workload_test.go

    			"internalIP": "10.10.10.10",
    			"ingressIP":  "10.10.10.11",
    		},
    		"ipv6": {
    			"internalIP": "fd00:10:96::1",
    			"ingressIP":  "fd00:10:96::2",
    		},
    	}
    	for _, dir := range files {
    		if !dir.IsDir() {
    			continue
    		}
    		testdir := path.Join("testdata/vmconfig", dir.Name())
    		t.Cleanup(func() {
    			for k := range generated {
    				os.Remove(path.Join(testdir, k))
    			}
    		})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate.go

    				continue
    			}
    			isDir = fi.IsDir()
    		}
    
    		if !isDir {
    			processFile(filename)
    			processedFiles[filename] = true
    			continue
    		}
    		if err := processDirectory(filename, func(path string) {
    			processFile(path)
    			processedFiles[path] = true
    		}); err != nil {
    			errs = multierror.Append(errs, err)
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. cmd/erasure-metadata.go

    	object = decodeDirObject(object)
    	versionID := fi.VersionID
    	if versioned && versionID == "" {
    		versionID = nullVersionID
    	}
    
    	objInfo := ObjectInfo{
    		IsDir:            HasSuffix(object, SlashSeparator),
    		Bucket:           bucket,
    		Name:             object,
    		ParityBlocks:     fi.Erasure.ParityBlocks,
    		DataBlocks:       fi.Erasure.DataBlocks,
    		VersionID:        versionID,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  9. 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) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  10. cmd/os_windows.go

    				// file/directory.
    				if osIsNotExist(err) || isSysErrPathNotFound(err) ||
    					isSysErrTooManySymlinks(err) {
    					continue
    				}
    				return err
    			}
    
    			if fi.IsDir() {
    				// Ignore symlinked directories.
    				continue
    			}
    
    			typ = fi.Mode()
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_DIRECTORY != 0:
    			typ = os.ModeDir
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 5.1K bytes
    - Viewed (0)
Back to top