How to test if file belongs to user or operating system using Java?
I’m particularly interested in finding out what are the temporary files generated by the operating system to perform operations such as deletion or modification.
tks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Java 7, you can use Files.getOwner()
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#getOwner%28java.nio.file.Path,%20java.nio.file.LinkOption…%29