Adapted console program to take files, folders or nothing.