This command only works on files

This command can operate only on files. This error has the following cause and solution: