Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for osIsNotExist (0.09 sec)

  1. cmd/xl-storage.go

    	// Disallow relative paths, figure out absolute paths.
    	path, err = filepath.Abs(path)
    	if err != nil {
    		return path, err
    	}
    
    	fi, err := Lstat(path)
    	if err != nil && !osIsNotExist(err) {
    		return path, err
    	}
    	if osIsNotExist(err) {
    		// Disk not found create it.
    		if err = mkdirAll(path, 0o777, ""); err != nil {
    			return path, err
    		}
    	}
    	if fi != nil && !fi.IsDir() {
    		return path, errDiskNotDir
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    					offlineCnt++
    				}
    			}
    			if len(tgts) == offlineCnt {
    				pTimer.Reset(mrfQueueInterval)
    				continue
    			}
    			if err := p.queueMRFHeal(); err != nil && !osIsNotExist(err) {
    				replLogIf(p.ctx, err)
    			}
    			pTimer.Reset(mrfQueueInterval)
    		case <-p.ctx.Done():
    			return
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
Back to top