lib/rbbt/persist/tsv/leveldb.rb in rbbt-util-5.20.9 vs lib/rbbt/persist/tsv/leveldb.rb in rbbt-util-5.20.10
- old
+ new
@@ -102,12 +102,12 @@
end
end
def self.open_leveldb(path, write, serializer = nil)
- write = true unless File.exists? path
+ write = true unless File.exist? path
- FileUtils.mkdir_p File.dirname(path) unless File.exists?(File.dirname(path))
+ FileUtils.mkdir_p File.dirname(path) unless File.exist?(File.dirname(path))
database = Persist::LevelDBAdapter.open(path, write)
unless serializer == :clean
TSV.setup database