(find: *.png: No such file or directory) terminal

terminal

I am trying to do some batch processing in terminal with texturePacker. The creator of texturePacker said that this is the way that you batch convert a directory of .pngs to .pvr.ccz.

find <directoryname> -name \*.png | sed 's/\.png//g' | \
    xargs -I % -n 1 TexturePacker %.png \
        --sheet %.pvr.ccz \
        --data dummy.plist \
        --algorithm Basic \
        --allow-free-size \
        --no-trim \
        --opt RGBA4444 \
        --dither-fs

But I keep getting this output in the terminal.
(find: *.png: No such file or directory)
Does anyone know why it would be saying that?

Best Answer

Did you specify the name of the directory containing the files: where the placeholder <directoryname> is? Is there at least one file ending in .png in that directory?

Try with the first part of the command:

find <directoryname> -name \*.png

to see if you get the list of files.