lib/backup/file_item/local.rb in encbs-0.2.1.beta2 vs lib/backup/file_item/local.rb in encbs-0.2.1
- old
+ new
@@ -2,11 +2,11 @@
module Backup
module FileItem
class Local < Backup::FileItem::Base
attr_reader :timeout
-
+
def initialize
@timeout = 0
end
def create_directory_once *directories
@@ -25,10 +25,10 @@
def read_file file
File.open(file, 'rb') do |f|
f.read
end if File.exists? file
end
-
+
def timeout= time
end
def dir path, mask = "*"
r_mask = mask.gsub('.', '\.').gsub('*', '[^\/]')