# File lib/ole/storage/file_system.rb, line 326 def mkdir path parent_path, basename = File.split @ole.file.expand_path(path) # note that we will complain about the full path despite accessing # the parent path. this is consistent with ::Dir parent = dirent_from_path parent_path, path # now, we first should ensure that it doesn't already exist # either as a file or a directory. raise Errno::EEXIST, path if parent/basename parent << Dirent.new(@ole, :type => :dir, :name => basename) 0 end