version3

add the command to handle files and directories.