Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for isdir (0.15 sec)

  1. cmd/metacache-entries.go

    	// Name should match...
    	if e.name != other.name {
    		if e.name < other.name {
    			return e, false
    		}
    		return other, false
    	}
    
    	if other.isDir() || e.isDir() {
    		if e.isDir() {
    			return e, other.isDir() == e.isDir()
    		}
    		return other, other.isDir() == e.isDir()
    	}
    	eVers, eErr := e.xlmeta()
    	oVers, oErr := other.xlmeta()
    	if eErr != nil || oErr != nil {
    		return nil, false
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  2. cmd/os_unix.go

    			}
    
    			// Ignore symlinked directories.
    			if !opts.followDirSymlink && typ&os.ModeSymlink == os.ModeSymlink && fi.IsDir() {
    				continue
    			}
    
    			typ = fi.Mode() & os.ModeType
    		}
    
    		var nameStr string
    		if typ.IsRegular() {
    			nameStr = string(name)
    		} else if typ.IsDir() {
    			// Use temp buffer to append a slash to avoid string concat.
    			tmp = tmp[:len(name)+1]
    			copy(tmp, name)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/object-api-datatypes.go

    	ModTime time.Time
    
    	// Total object size.
    	Size int64
    
    	// Actual size is the real size of the object uploaded by client.
    	ActualSize *int64
    
    	// IsDir indicates if the object is prefix.
    	IsDir bool
    
    	// Hex encoded unique entity tag of the object.
    	ETag string
    
    	// Version ID of this object.
    	VersionID string
    
    	// IsLatest indicates if this is the latest current version
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool.go

    	loi.IsTruncated = err == nil && len(objects) > 0
    	if maxKeys > 0 && len(objects) > maxKeys {
    		objects = objects[:maxKeys]
    		loi.IsTruncated = true
    	}
    	for _, obj := range objects {
    		if obj.IsDir && obj.ModTime.IsZero() && delimiter != "" {
    			// Only add each once.
    			// With slash delimiter we only get the directory once.
    			found := false
    			if delimiter != slashSeparator {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. docs/debugging/xl-meta/main.go

    				r = f
    			}
    			if strings.HasSuffix(file, ".zip") {
    				zr, err := zip.NewReader(r.(io.ReaderAt), sz)
    				if err != nil {
    					return err
    				}
    				for _, file := range zr.File {
    					if !file.FileInfo().IsDir() && strings.HasSuffix(file.Name, "xl.meta") {
    						r, err := file.Open()
    						if err != nil {
    							return err
    						}
    						// Quote string...
    						b, _ := json.Marshal(file.Name)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  8. cmd/ftp-server-driver.go

    			return &minioFileInfo{
    				p:     pathClean(object),
    				info:  minio.ObjectInfo{Key: object},
    				isDir: true,
    			}, nil
    		}
    		return nil, err
    	}
    
    	isDir := strings.HasSuffix(objInfo.Key, SlashSeparator)
    	return &minioFileInfo{
    		p:     pathClean(object),
    		info:  objInfo,
    		isDir: isDir,
    	}, nil
    }
    
    // ListDir implements ftpDriver
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.go

    				globalExpiryState.enqueueByDays(objInfo, evt, lcEventSrc_Rebal)
    				return true
    			}
    
    			return false
    		}
    
    		rebalanceEntry := func(entry metaCacheEntry) {
    			defer wk.Give()
    
    			if entry.isDir() {
    				return
    			}
    
    			// rebalance on poolIdx has reached its goal
    			if z.checkIfRebalanceDone(poolIdx) {
    				return
    			}
    
    			fivs, err := entry.fileInfoVersions(bucket)
    			if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. 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)
Back to top