Given a file path, how can I get its meta data. Here is my problem: I have to truly hide a file (even with ls -a it should not show up anywhere) and I donot need to gaurentee that it will have the same state when it comes back. Now I though if can just copy the meta data and store it somewhere, only to write it back when I need to, It would solve my problem
- I have to create a copy of that meta data and store it in another place.
- I have to be able to copy back that meta data when ever I want it to.
So How can I get the meta-data of a file? If there is a better way to fully hide the file how can I?
This is a personal project and I wont have any code up-stream.
I am working in linux kernel 3.5.4v
See Question&Answers more detail:os