Tried all the things in java nio package... couldn't get anything related to "folder last accessed by username / domain" etc.
I have written a code using import java.nio.file.WatchService to watch the folder but in vain... just noticing that someone is changing the folder name and pooof gone..
'm not able to find out who dunnit...
Most OS filesystems don't journal to the extent that even an OS system call can discover that, and Java's IO packages are designed to be "write once, run anywhere", which limits to lowest common denominator. So don't get too hopeful.
Customer surveys are for companies who didn't pay proper attention to begin with.
Is there a Java API which can tell me who renamed my folder name ? may be last accessed by ?
Thanks in advance.
In windows you can't do so , there is no method in windows which will provide the name (username) of the person who rename your folder, windows has a method which provide the last modified date time ,
last year i was trying to accomplish a task which is quite similar to your task in which i have to identify who has copied what files from my pc but i was said that there aren't any method in windows which will get me that .....there aren't any system call to accomplish this task ....
correct me if i m wrong ....
Well, no, recent versions of Windows do have the ability to audit access to specified files. As far as I can see from my 45 seconds of research this can be set up by an administrator and audit records get written to a security log.
Whether there's an API to access that security log, I don't know. However I would expect that if you're going to be looking at the security log, you're going to be looking at it via the application which Windows already provides you -- at least I assume there is such an application, my 45 seconds didn't extend to finding that out.