Dates of folder/files created from templates

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Patrick Schönbach
Posts: 70
Joined: 26 Apr 2015 15:25

Dates of folder/files created from templates

Post by Patrick Schönbach »

Hello,

if one creates a folder/file hierarchy from a template via "New XY", the created folders/files have the same creation and modification date as the corresponding folder/file in the template. Wouldn't it be better to set these dates to the current time? After all, these elements have been newly created.
Regards,
Patrick
http://www.klangexzellenz.de

Windows 11
Screen Scaling Percentage: 150%

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dates of folder/files created from templates

Post by admin »

You mean the items *under/inside* the copied ("created") folder?

Win8.1 here: all created dates are updated to NOW. Only the modified dates of items inside the folder are left untouched.

Is that different at your end?

Patrick Schönbach
Posts: 70
Joined: 26 Apr 2015 15:25

Re: Dates of folder/files created from templates

Post by Patrick Schönbach »

Ok, I can confirm that. But isn't that a bit confusing? It's different from what happens if one would create the stuff manually.
Regards,
Patrick
http://www.klangexzellenz.de

Windows 11
Screen Scaling Percentage: 150%

Patrick Schönbach
Posts: 70
Joined: 26 Apr 2015 15:25

Re: Dates of folder/files created from templates

Post by Patrick Schönbach »

After all, templates are just a tool to avoid manual creation. Therefore, the result should be the same. Don't you think?
Regards,
Patrick
http://www.klangexzellenz.de

Windows 11
Screen Scaling Percentage: 150%

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dates of folder/files created from templates

Post by admin »

It's nothing I do actively. This copy is handled by the shell and the shell wants the modified dates to stay. Which I find kind of okay. I would have a problem if the created dates would stay unchanged.

Other opinions out there?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Dates of folder/files created from templates

Post by highend »

I'm on Patrick's side in this case. Even the modified date should be set correctly
One of my scripts helped you out? Please donate via Paypal

Patrick Schönbach
Posts: 70
Joined: 26 Apr 2015 15:25

Re: Dates of folder/files created from templates

Post by Patrick Schönbach »

The shell wants it to stay because literally it is a copy, but for the end user it is newly created.
Regards,
Patrick
http://www.klangexzellenz.de

Windows 11
Screen Scaling Percentage: 150%

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Dates of folder/files created from templates

Post by PeterH »

But it is newly created as a copy from the template - if you will change it later "changed" will change. :D

So for me it's OK as it is.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dates of folder/files created from templates

Post by admin »

It's a 2:2 draw now. We need more voices... :)

Patrick Schönbach
Posts: 70
Joined: 26 Apr 2015 15:25

Re: Dates of folder/files created from templates

Post by Patrick Schönbach »

It is not a huge thing, but no, it is not a copy. These are newly created items. Even the menu item name suggests it. How these items are created technically does not matter from the user's perspective, it is an implementation detail.
Regards,
Patrick
http://www.klangexzellenz.de

Windows 11
Screen Scaling Percentage: 150%

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Dates of folder/files created from templates

Post by highend »

Does it help if I write my comments in bold? :D

Why should it matter when the template was created? Makes no sense to me. You're creating new
instances and they should have the current date...
One of my scripts helped you out? Please donate via Paypal

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Dates of folder/files created from templates

Post by Marco »

I stand with Patrick and highend.
When you create a new folder (Ctrl+N) or txt file (Ctrl+Shift+N) the three timestamps are set to now. For sake of consistency, other files/folders created from a template should similarly have the timestamps set to now.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dates of folder/files created from templates

Post by admin »

OK, done. :)

Post Reply