move add directory recursive to fileNameModel
remove useless codes
fix bug--remove redundance suffix when add file recursively
remove useless codes