How do I solve the Error Code -36? I deleted some photos from iPhotos and Photos libraries that I should not have. I want to restore these from my Time Machine back of a couple days ago.
When I do this I keep getting the following error

The Finder can’t complete the operation because some data in “Photos Library” 
can’t be read or written.(Error code -36)


Any help will be much appreciated.
I was able to get these files from time machine by accessing the time machine from the terminal. I used the following commands

sudo tmutil listbackup


this listed all the backup directories, their names contain the date of the backup.
then

cd &lt;to the backup I wanted&gt;


then

cp -R &lt;iPhotos backup folder&gt; &lt;Pictures folder&gt;


during this command, I did get a warning for one of the image files. My guess is that Finder cannot handle this situation.