I am making a file sync program and have pretty much finished except for one remaining problem.
Is there a different command or argument to pass to mkdir or cp that will let my program both create a new directory and set the icon of that folder? (perhaps some arguments to pass to mkdir?)
I have achieved a similar outcome before with cp -pR, but that will also copy every file on the path, so it only works if I am syncing something for the first time.
How can I set the icon of a newly created directory (via the terminal) without also copying every file of that directory?
mkdiris for the commandline. You can't see icons in the commandline. – Wuffers Oct 17 '11 at 22:33