# File lib/rack/directory.rb, line 112 112: def list_path 113: @stat = F.stat(@path) 114: 115: if @stat.readable? 116: return @app.call(@env) if @stat.file? 117: return list_directory if @stat.directory? 118: else 119: raise Errno::ENOENT, 'No such file or directory' 120: end 121: 122: rescue Errno::ENOENT, Errno::ELOOP 123: return entity_not_found 124: end