Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 576 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 576 Bytes

upyun-ruby

又拍云不提供Ruby客户端,自己写一个好了。


使用示例

上传

require 'upyun'
up = UpYun.new('bucketname', 'username', 'password')
f = open('google.png')
up.writeFile('/google.png', f)

读取文件目录

require 'upyun'
up = UpYun.new('bucketname', 'username', 'password')
up.readDir('/filepath')

@gccyugi写了一个Lua风格的upyun客户端在这里;此外,TA还写了一个Python客户端