@option(
        "-r", "--recursive", action="store_true", default=False,
        help='recursively descend into subdirectories'
    )
    def line_ls(self, path=".", recursive=False):
        path = os.path.expanduser(path)
        self.retval = FileLinks(path, recursive=recursive)
%ls PATH - list files and directories under PATH
dataset/ETHPy150Open Calysto/metakernel/metakernel/magics/ls_magic.py/LSMagic.line_ls