FileInfo class

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

In the FileInfo class there are several properties where you can manipulate
the file for example
the date and time that the current file was last written to.

This sound strange assume I have a file where there is a date and time where
this file was last written to then
someone else manipulate this date and time and set a competely different
date and time.

This mean that the date and time for the specified file in not to be trusted
because
this date and time might have been manipulated.

Is my thought correct here?

//Tony
 
Tony said:
In the FileInfo class there are several properties where you can manipulate
the file for example
the date and time that the current file was last written to.

This sound strange assume I have a file where there is a date and time where
this file was last written to then
someone else manipulate this date and time and set a competely different
date and time.

This mean that the date and time for the specified file in not to be trusted
because
this date and time might have been manipulated.

Is my thought correct here?
I don't know, I don't really understand what you're getting at.

If you mean that file info can be manipulated, then of course it can. Anyone
with access to the file can modify anything they like about the file,
including the access, creation and modification times. Modifying the last
modified time is called "touching" the file, and the utility that does it is
called "touch".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top