dwFileAttributes ignored when ftLastWriteTime not set

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
pawelsky
Junior Member
Junior Member
Posts: 15
Joined: 2006-01-07, 23:33 UTC
Location: Poland

dwFileAttributes ignored when ftLastWriteTime not set

Post by *pawelsky »

Hello,

I am developing a WFX plungin and have just came across the following problem. When I set:

Code: Select all

ftLastWriteTime.dwHighDateTime=0xFFFFFFFF;
ftLastWriteTime.dwLowDateTime=0xFFFFFFFE;
attributes set in dwFileAttributes are not displayed in the filelist.

When ftLastWriteTime is set to any ohter value attributes are displayed correctly.

Is there any reason for that?

Regards,
Pawel
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50406
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, this is documented: Use this to hide the time, e.g. when it is not available. Use twice FFFFFFFF to show a question mark instead.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
But what is the connection to the attributes?
pawelsky
Junior Member
Junior Member
Posts: 15
Joined: 2006-01-07, 23:33 UTC
Location: Poland

Post by *pawelsky »

ghisler(Author) wrote:Yes, this is documented: Use this to hide the time, e.g. when it is not available. Use twice FFFFFFFF to show a question mark instead.
Yes, but why setting the Date fieled also affects the Attributes field? This doesn't seem correct, unless there is some reason we are not aware of. Could you please explain?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50406
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, that's indeed strange - I must have made the assumption that if the date isn't available the attirbutes wouldn't be available either...
Author of Total Commander
https://www.ghisler.com
pawelsky
Junior Member
Junior Member
Posts: 15
Joined: 2006-01-07, 23:33 UTC
Location: Poland

Post by *pawelsky »

ghisler(Author) wrote:...I must have made the assumption that if the date isn't available the attirbutes wouldn't be available either...
Please check it then and at least document that. However if it's not a big deal it would be probably better to have Date and Attributes independent in future releases of TC.
Post Reply