about summary refs log tree commit homepage
path: root/lib/mogilefs/mogilefs.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-11-19 08:45:07 +0000
committerEric Wong <normalperson@yhbt.net>2011-11-19 08:45:07 +0000
commitf8156e239ea4da4cbcd020f24bf06c4fb9e7cde7 (patch)
tree31d084283c7e1a9adf98b1754f397c3e7a89f509 /lib/mogilefs/mogilefs.rb
parent381044eeda55a5ca7edcccd87d27c30a287723e1 (diff)
downloadmogilefs-client-f8156e239ea4da4cbcd020f24bf06c4fb9e7cde7.tar.gz
Destination path will be created with 0600 permissions to
be consistent with IO.copy_stream [ruby-core:41151]
Diffstat (limited to 'lib/mogilefs/mogilefs.rb')
-rw-r--r--lib/mogilefs/mogilefs.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index a3d88db..40ee1ca 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -22,9 +22,7 @@
 #
 #   # Retrieve the contents of 'my_image' into '/path/to/huge_file'
 #   # without slurping the entire contents into memory:
-#   File.open('/path/to/huge_file', 'w') do |fp|
-#     mg.get_file_data('my_image', fp)
-#   end
+#   mg.get_file_data('my_image', '/path/to/huge_file')
 #
 #   # Remove the key 'my_image' and 'some_key'.
 #   mg.delete('my_image')