lib/s3backup/manager.rb in s3backup-0.8.6 vs lib/s3backup/manager.rb in s3backup-0.8.7
- old
+ new
@@ -1,11 +1,8 @@
require 'cgi'
require 'time'
require 'fileutils'
-require 's3backup/s3log'
-require 's3backup/tree_info'
-require 's3backup/crypt'
module S3backup
class Manager
DEFAULT_BUF_READ_SIZE=1024*1024*32
def shell_name(str)
str.gsub!(/[!#"$&'()*,:;<=>?\[\]\\^`{|}\s]/, '\\\\\&')
@@ -290,10 +287,10 @@
(tree.length - 1).downto(0){|n|
tree[n].each do |k,v|
dir_len = k.length
relative_path = k.slice(top_dir_len,dir_len - top_dir_len)
dir = output_dir + relative_path
- File.utime(now,Time.parse(v[:mtime]),dir)
+ File.utime(now,Time.at(v[:mtime]),dir)
end
}
end
def restore(dir,output_dir)
tree = get_target_tree(dir)