Skip to content

Commit 41445b6

Browse files
committed
add comment about aws-compat in directories.get
1 parent e35a837 commit 41445b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/fog/storage/google_json/models/directories.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def get(bucket_name, options = {})
2222
).to_h
2323

2424
directory = new(data)
25-
25+
# Because fog-aws accepts these arguments on files at the
26+
# directories.get level, we need to preload the directory files
27+
# with these attributes here.
2628
files_attr_names = %i(delimiter page_token max_results prefix)
2729

2830
file_opts = options.select { |k, _| files_attr_names.include? k }

0 commit comments

Comments
 (0)