work on list_dir and del_dir