<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ls(hdfs_path, user=None, recursive=False):
 """ Return a list of hdfs paths. Works in the same way as :func:`lsl`, except for the fact that list items are hdfs paths instead of dictionaries of properties. """

    dir_list = lsl(hdfs_path, user, recursive)
    return [d["name"] for d in dir_list]