The code is modified from the https://github.com/kaelzhang/shell-safe-rm, fixed the file and directory name with space problem.