in reply to
existing file is modified or not
If you're on Windows, then you can also have a look at one of Microsoft Resource Kit's tools, robocopy.
It has many features that come in handy, like MIRroring 2 directories, reporting changes etc.
It can also synchronize the permissions between 2 directory structures.