Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ext (0.13 sec)

  1. cmd/metacache-entries.go

    		// Root
    		idx := strings.Index(e.name, separator)
    		return idx == -1 || idx == len(e.name)-len(separator)
    	}
    	ext := strings.TrimPrefix(e.name, dir)
    	if len(ext) != len(e.name) {
    		idx := strings.Index(ext, separator)
    		// If separator is not found or is last entry, ok.
    		return idx == -1 || idx == len(ext)-len(separator)
    	}
    	return false
    }
    
    // isLatestDeletemarker returns whether the latest version is a delete marker.
    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/utils.go

    // disk since the name of this latter is randomly generated.
    type profilerWrapper struct {
    	// Profile recorded at start of benchmark.
    	records map[string][]byte
    	stopFn  func() ([]byte, error)
    	ext     string
    }
    
    // record will record the profile and store it as the base.
    func (p *profilerWrapper) record(profileType string, debug int, recordName string) {
    	var buf bytes.Buffer
    	if p.records == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  3. cmd/sftp-server-driver.go

    		r:      pr,
    		wg:     &sync.WaitGroup{},
    	}
    	wa.wg.Add(1)
    	go func() {
    		_, err := clnt.PutObject(r.Context(), bucket, object, pr, -1, minio.PutObjectOptions{
    			ContentType:          mimedb.TypeByExtension(path.Ext(object)),
    			DisableContentSha256: true,
    		})
    		pr.CloseWithError(err)
    		wa.wg.Done()
    	}()
    	return wa, nil
    }
    
    func (f *sftpDriver) Filecmd(r *sftp.Request) (err error) {
    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. cmd/s3-zip-handlers.go

    	fileObjInfo := ObjectInfo{
    		Bucket:      bucket,
    		Name:        object,
    		Size:        int64(file.UncompressedSize64),
    		ModTime:     zipObjInfo.ModTime,
    		ContentType: mime.TypeByExtension(filepath.Ext(object)),
    	}
    
    	var rc io.ReadCloser
    
    	if file.UncompressedSize64 > 0 {
    		// There may be number of header bytes before the content.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. cmd/ftp-server-driver.go

    	if err != nil {
    		return 0, err
    	}
    
    	info, err := clnt.PutObject(context.Background(), bucket, object, data, -1, minio.PutObjectOptions{
    		ContentType:          mimedb.TypeByExtension(path.Ext(object)),
    		DisableContentSha256: true,
    	})
    	return info.Size, err
    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)
  6. cmd/erasure-multipart.go

    		partsMetadata[index] = fi
    	}
    
    	// Guess content-type from the extension if possible.
    	if userDefined["content-type"] == "" {
    		userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object))
    	}
    
    	// if storageClass is standard no need to save it as part of metadata.
    	if userDefined[xhttp.AmzStorageClass] == storageclass.STANDARD {
    		delete(userDefined, xhttp.AmzStorageClass)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  7. cmd/metacache-entries_test.go

    		},
    		{
    			testName: "basic-dir",
    			entry:    "src/dir/",
    			dir:      "src/",
    			sep:      slashSeparator,
    			want:     true,
    		},
    		{
    			testName: "deeper-file",
    			entry:    "src/dir/somewhere.ext",
    			dir:      "src/",
    			sep:      slashSeparator,
    			want:     false,
    		},
    		{
    			testName: "deeper-dir",
    			entry:    "src/dir/somewhere/",
    			dir:      "src/",
    			sep:      slashSeparator,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 31.6K bytes
    - Viewed (0)
  8. cmd/data-scanner.go

    	failedSize      int64
    	pendingCount    uint64
    	failedCount     uint64
    }
    
    type getSizeFn func(item scannerItem) (sizeSummary, error)
    
    // transformMetaDir will transform a directory to prefix/file.ext
    func (i *scannerItem) transformMetaDir() {
    	split := strings.Split(i.prefix, SlashSeparator)
    	if len(split) > 1 {
    		i.prefix = pathJoin(split[:len(split)-1]...)
    	} else {
    		i.prefix = ""
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
Back to top