Need to escape cp filenames.  Also, might not have mimetype info to check if directory.