no cp errors when directory is empty (tests for file existence and uses a loop)
no cp errors when directory is empty (tests for file existence and uses
a loop)

it's cumbersome but I'm in a hurry

pushkin-consortium/pushkin