master007 said:
Hi....
i want to detect file operations in the hard disk....
please encourage us...ok
iam doing searcher.
if i have this facility...i don't need to scan the hard disk again...
i think u get me...
sorry if i talk something rudely...
but try to solve if u know....otherwise try to know solution for
quesion...
but don't comment....
Thanks!!!
sorry Sir..
bye..take care
I'm not sure what you mean by "try to know solution for quesion... but
don't comment...", so if you didn't want me to reply to this, I apologize,
and you can ignore the rest of this message.
Probably, rather than trying to detect file operations on the hard disk,
you're more interested in detecting file operations on the file system. The
distinction is important, because a single file system might span more than
one hard disk (or it might span less than a single hard disk), and a hard
disk might contain data in a filesystem that is not understood by the OS the
JVM is currently running in.
As Chris has mentioned, your best bet to do this only in Java is to poll
the file system, looking for files. Unfortunately, this won't allow you to
detect changes "immediately". Rather, you'll detect the files when you
actually do the polling.
- Oliver