lib/big_keeper/util/cache_operator.rb in bigkeeper-0.9.5 vs lib/big_keeper/util/cache_operator.rb in bigkeeper-0.9.6

- old
+ new

@@ -17,10 +17,12 @@ def load(file) FileUtils.cp("#{@cache_path}/#{file}", "#{@path}/#{file}"); end def clean - FileUtils.rm_r(@cache_path) + if File.exist?(@cache_path) + FileUtils.rm_r(@cache_path) + end end end class ModuleCacheOperator def initialize(path)