# File lib/ole/storage/file_system.rb, line 46 def dirent_from_path path dirent = @root path = file.expand_path path path = path.sub(/^\/*/, '').sub(/\/*$/, '').split(/\/+/) until path.empty? return nil if dirent.file? return nil unless dirent = dirent/path.shift end dirent end