lib/rio/ext/zipfile/rootdir.rb in rio-0.5.1 vs lib/rio/ext/zipfile/rootdir.rb in rio-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===========================================================================
-# Copyright (c) 2005-2012 Christopher Kleckner
+# Copyright (c) 2005-2017 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -34,11 +34,10 @@
include Enumerable
def initialize(zipfilepath)
@zipfilepath = zipfilepath
@zipfile = Zip::ZipFile.new(@zipfilepath)
- #puts @zipfile.methods.sort
@topents = get_topents_
@entidx = 0
end
def get_topents_
topents = {}
@@ -74,33 +73,5 @@
end
end
end
__END__
-
-
- class CentralDir < RIO::FS::Native
- def initialize(zipfilepath)
- @zipfilepath = zipfilepath
- @zipfile = Zip::ZipFile.new(@zipfilepath)
- super
- end
- def mkdir(path)
- @zipfile.mkdir(path)
- end
- def rmdir(path)
- @zipfile.remove(path)
- end
- def file()
- self
- end
- def open(zipfilepath)
- @zipfilepath = zipfilepath
- @zipfile = Zip::ZipFile.new(@zipfilepath)
- RIO::ZipFile::CentralDir.new(@zipfile)
- end
-
- end
-
- end
- end
-end