in reply to Re^4: change files names bugin thread change files names bug
This means the file does not exist in the cwd , its because readdir does NOT return the complete path and you forgot to chdir