473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

FileSystem bug ?

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

Jul 21 '05 #1
4 1513
Works for me. Are you sure you save the image when done?

Willy.

"Michal Januszczyk" <an*******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
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 photoshop
(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 reflect
the recent image change: it shows previous {image changing date}.

I checked Image properties using windows explorer, and it shows
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 Advance
Michal Januszczyk

Jul 21 '05 #2
Works for me. Are you sure you save the image when done?

Willy.

"Michal Januszczyk" <an*******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
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 photoshop
(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 reflect
the recent image change: it shows previous {image changing date}.

I checked Image properties using windows explorer, and it shows
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 Advance
Michal Januszczyk

Jul 21 '05 #3

----- Willy Denoyette [MVP] wrote: ----

Works for me. Are you sure you save the image when done

Yes I'm sure. The image is saved automatically when it is rotated. You can even
find that the image size changes.

Once again: I view JPEG file with "Image And Fax Viewer" (ships with WinXP), rotate
the the file (just after the operation You can see that image size changed).
Then I right click the image, see properties and the file "Modified date" shows some
old date (date that the file was modified by some other program).

If You had hanged the file by some other software (e.g. photoshop), and just
after that You used Windows Image Viewer to do the same, the modified
date shows the right date because the {file changing} by photoshop and by the
Image Viever took place the same day (the modified date does not show exac
time, just day).

So You might want to rotate the file with WinXP Image Viewer first, and
see file properties.

I checked this behavior on three diffrent machines, and all the three behave the same
(all running WinXP Professional)

Thank
Michał Januszczyk
Jul 21 '05 #4

----- Willy Denoyette [MVP] wrote: ----

Works for me. Are you sure you save the image when done

Yes I'm sure. The image is saved automatically when it is rotated. You can even
find that the image size changes.

Once again: I view JPEG file with "Image And Fax Viewer" (ships with WinXP), rotate
the the file (just after the operation You can see that image size changed).
Then I right click the image, see properties and the file "Modified date" shows some
old date (date that the file was modified by some other program).

If You had hanged the file by some other software (e.g. photoshop), and just
after that You used Windows Image Viewer to do the same, the modified
date shows the right date because the {file changing} by photoshop and by the
Image Viever took place the same day (the modified date does not show exac
time, just day).

So You might want to rotate the file with WinXP Image Viewer first, and
see file properties.

I checked this behavior on three diffrent machines, and all the three behave the same
(all running WinXP Professional)

Thank
Michał Januszczyk
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is...
1
by: Francois Fernandes | last post by:
Hi list! I would like to write a linux c++ program which mounts it's own filesystem within a file, that is located in the Linux filesystem. Now I don't know how to start that. I need basic help...
3
by: Michael | last post by:
Is this the correct place to ask about Boost libs? If it is.............. #include <boost/filesystem/path.hpp> #include <boost/filesystem/operations.hpp> using namespace boost; using...
1
by: Lucas Fletcher | last post by:
Hi All, I've searched the web for an article explaining the many tradeoffs between storing your XML in a database vs the filesystem but I haven't really found anything of note. This is the...
4
by: Christian Blackburn | last post by:
Hi Gang, I've created a text-based file format. Once I've generated the text to save the file is as it should be in the debug window. However once I write it to a file a " is added to the...
2
by: Jeff Davis | last post by:
I have virtual hosted users on a server and some of them have a postgresql database. I'm concerned about the outside possibility that a user could create an infinite loop and fill up the partition...
16
by: Michal Hlavac | last post by:
Hello, I am working on web portal. There are some ads. We have about 200 000 ads. Every ad have own directory called ID, where is 5 subdirectories with various sizes of 5 images. Filesystem...
5
by: GaryE | last post by:
Hello: I am having trouble linking a couple of files using the boost::filesystem. I am using MSVC 6.0. Here is an abbreviated version of my problem: foo.h: #ifndef __FOO_ #define...
2
by: Javier | last post by:
Hello all, I'm trying to remove a hidden file (in UNIX) using the Boost::filesystem library. This is what I have: #include <boost/filesystem/operations.hpp> namespace...
1
by: Thomas W | last post by:
I want to create a virtual filesystem based on a relational database. It might run as a server on a different machine, but it has to be available like a normal filesystem, either shared using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.