I have a directory that have zillions of files. As soon as I try to copy this directory, I receive a message that a file could not be copied (corrupt ?) and the copy stops.
Is there any command I can type on terminal that can check all files on that directory tree and list all files that could not be copied or that are corrupt? I would not like to copy the files at this time, just to check if files would not be possible to copy/read if I try.
I am on OS X Mountain Lion but any unix command should work fine, I hope.
NOTE: by corrupt I mean a file that cannot be read or copied.