-
fixed size for
files
method -
download
method returnString
file raw data, if save path don't presentyd.download('/my/work/graph.pdf') #=> String
-
minor code fixing
- fixed Ruby 2.0 file upload error
- fixed Ruby 2.0 openssl error
- gem size decrease
-
size
,properties
,files
methods now has option:h_size => true
(humanize size) to return readable format: 15 Byte, 100 KB, 128 MB, 1 GB.s = yd.size(:h_size => true) p s[:available], s[:used] => 7.9 GB, 100 MB #### prop = yd.properties('/home/graph.pdf', {:h_size => true}) p prop[:size] # => 50 MB ### files = yd.files('/home', {:h_size => true}) p files[0][:size] => 50 MB
-
Method
files
changed second argument, now isHash
, and dont include root directory for default:# Old # dont include root directory yd.files('/home', false) # include root directory yd.files('/home') # New # dont include root directory yd.files('/home') # include root directory yd.files('/home', {:root => true})
-
added alias method
ls
tofiles
:yd.ls('/home')