lib/ole/storage/file_system.rb in ruby-ole-1.2.11.4 vs lib/ole/storage/file_system.rb in ruby-ole-1.2.11.5
- old
+ new
@@ -149,10 +149,10 @@
dirent = @ole.dirent_from_path path
dirent and dirent.dir?
end
def open path, mode='r', &block
- if IO::Mode.new(mode).create?
+ if IOMode.new(mode).create?
begin
dirent = dirent_from_path path
rescue Errno::ENOENT
# maybe instead of repeating this everywhere, i should have
# a get_parent_dirent function.