FileSystem Bug ?

G

Guest

I have found a strange behavior

I use FileInfo class to retreive LastWriteTime property of some file
The file is just a JPEG image. When the image is editted by photosho
(actually the image is rotated), the LastWriteTime property
shows correct modification date. However, when I rotate the image
with the built-in WinXP Image Viever, the property does not reflec
the recent image change: it shows previous {image changing date}

I checked Image properties using windows explorer, and it show
exactly the same what FileInfo class does. If image is modified (rotated
by winXP built-In Image Viewer, the "Modified" property does not
reflect the recent image change.

The only thing I noticed that changes are file attributes
After rotation with WinXP Image Viewer, the "archive" attribute is removed

So, is it a bug or XP Image viewer modifies files
in a way that bypasses FileSystem .. or what ??

The most important thing I would like to know is actual file modification
date (date of last modification), regardless of what program had been
used to modify the file. Is it somehow possible

Thanks In Advanc
Michał Januszczy
 
G

Guest

The reason that WinXP's image viewer doesn't change the modification date is because the viewer doesn't think this is a significant change. When you rotate it in Photoshop, a much more powerful image editing utility, once you rotate the image the software is going to say that the image has been changed so when you save it photoshop changes the date modified. This is really a common behavior of applications.
 

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

Top