Module | AWS::S3::DataOptions |
In: |
lib/aws/s3/data_options.rb
|
Used by S3#S3Object and S3::Client to accept options with data that should be uploaded (streamed). @api private
Converts an argument list into a single hash of options. Treats non-hash arguments in the first position as a data option.
@param [String] path Path to a file on disk. @return [File] Given a path string, returns an open File.
Moves options[:file] to options[:data]. If this option is a string then it is treated as a file path and is converted to an open file.