fix bug of "manage_file dir_mode does not work"

manage_file dir_mode does not work