Rewrite actions()

Don't parse the output of ls.