add ls dir function. examples 1-1.\n using file and dir.