mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Add warning messages around directories.get
This commit is contained in:
parent
d94e2228fc
commit
3124da9cb7
2 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,7 @@ file = directory.files.create(key: 'user/1/Gemfile', body: File.open('Gemfile'),
|
|||
directory = s3.directories.get('gaudi-portal-dev', prefix: 'user/1/')
|
||||
directory.files
|
||||
```
|
||||
**Warning!** `s3.directories.get` retrieves and caches meta data for the first 10,000 objects in the bucket, which can be very expensive. When possible use `s3.directories.new`.
|
||||
|
||||
#### Generating a URL for a file:
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ module Fog
|
|||
load(data)
|
||||
end
|
||||
|
||||
# Warning! This retrieves and caches meta data for the first 10,000 objects in the bucket, which can be very expensive. When possible use directories.new
|
||||
def get(key, options = {})
|
||||
remap_attributes(options, {
|
||||
:delimiter => 'delimiter',
|
||||
|
|
Loading…
Reference in a new issue