riak-fuse.rb
#  Read the contents of a path
Read the contents of a path
Read the contents of a path
def contents(path)
    debug "Contents: #{path}"
    return initial_buckets if path == "/" 
    bucket, key = parse_path(path)
    if bucket && !key
      get_tree(bucket).list("ROOT")
    elsif bucket && key
      get_tree(bucket).list(key)
    else
      []
    end
  end
def contents ( path ) debug "Contents: #{path}" return initial_buckets if path == "/" bucket , key = parse_path ( path ) if bucket && ! key get_tree ( bucket ) . list ( "ROOT" ) elsif bucket && key get_tree ( bucket ) . list ( key ) else [ ] end end
Read the contents of a path
Read the contents of a path
path