Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isDirectiveCopy (0.11 sec)

  1. cmd/handler-utils.go

    }
    
    // isDirectiveValid - check if tagging-directive is valid.
    func isDirectiveValid(v string) bool {
    	// Check if set metadata-directive is valid.
    	return isDirectiveCopy(v) || isDirectiveReplace(v)
    }
    
    // Check if the directive COPY is requested.
    func isDirectiveCopy(value string) bool {
    	// By default if directive is not set we
    	// treat it as 'COPY' this function returns true.
    	return value == copyDirective || value == ""
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    		}
    		return emetadata, nil
    	}
    
    	if sc != "" {
    		defaultMeta[xhttp.AmzStorageClass] = sc
    	}
    
    	// if x-amz-metadata-directive says COPY then we
    	// return the default metadata.
    	if isDirectiveCopy(r.Header.Get(xhttp.AmzMetadataDirective)) {
    		return defaultMeta, nil
    	}
    
    	// Copy is default behavior if not x-amz-metadata-directive is set.
    	return defaultMeta, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top