Add list_dir function on client