lib/rbsync.rb in rbsync-0.0.13 vs lib/rbsync.rb in rbsync-0.0.14

- old
+ new

@@ -136,15 +136,17 @@ #両方にあるファイル名で中身が違うもので src の方が古いもの same_name_files = (dest_files & src_files) same_name_files.reject!{|e| #ファイルが同じモノは省く + next unless File.exists?( File.expand_path(e,dest)) puts "compare file bin. #{e}" if self.debug? || self.verbose? $stdout.flush if self.debug? FileUtils.cmp( File.expand_path(e,src) , File.expand_path(e,dest) ) } if options[:strict] same_name_files.reject!{|e| #ファイルサイズが同じモノを省く(全部比較する代替手段) + next unless File.exists?( File.expand_path(e,dest)) puts "size/mtime compare #{e}" if self.debug? || self.verbose? File.size(File.expand_path(e,src)) == File.size( File.expand_path(e,dest)) #&& File.mtime(File.expand_path(e,src)) == File.mtime( File.expand_path(e,dest) ) } unless options[:strict] if options[:update] then