[WCX] SetFolderDate 1.3.0.0
Moderators: Hacker, petermad, Stefan2, white
[WCX] SetFolderDate 1.3.0.0
You can also use the SetFolderDate packer plugin, which respects the ignored files when setting the folder date recursively.
@C++17 developers: I'd like to know why setting the last write time of a directory using the C++17 method std::filesystem::last_write_time always throws in VS2017? See wcx_setfolderdate.cpp for the corresponding lines of code. (It works for regular files though.)
Thread split from <UTIL> Change timestamp of whole dir-trees folders to youngest file.
@C++17 developers: I'd like to know why setting the last write time of a directory using the C++17 method std::filesystem::last_write_time always throws in VS2017? See wcx_setfolderdate.cpp for the corresponding lines of code. (It works for regular files though.)
Thread split from <UTIL> Change timestamp of whole dir-trees folders to youngest file.
Last edited by tbeu on 2020-05-03, 09:06 UTC, edited 1 time in total.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
I was using SetFolderDate 1.5tbeu wrote: 2019-07-03, 09:00 UTC You can also use the SetFolderDate packer plugin, which respects the ignored files when setting the folder date recursively.
@C++17 developers: I'd like to know why setting the last write time of a directory using the C++17 method std::filesystem::last_write_time always throws in VS2017? See wcx_setfolderdate.cpp for the corresponding lines of code. (It works for regular files though.)
Which version is this? The page reports:
SetFolderDate 1.0.0.1
Version 2.0.0.1
- first public release
A bit confusing.
Re: [WCX] SetFolderDate
Fixed bx SetFolderDate 1.0.0.2. Note that this new packer plugin is independent of the utility tool SetFolderDate 1.5.mikedepetris wrote: 2019-07-03, 14:55 UTC Which version is this? The page reports:
SetFolderDate 1.0.0.1
Version 2.0.0.1
- first public release
A bit confusing.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
Tested it, it's very fast but I am getting some errors if I select dirs containing many files, I then tried doing it for subdir ranges and then it worked for all the parent... not clear what is going on, it says "error writing date" or something similar.tbeu wrote: 2019-07-05, 19:37 UTCFixed bx SetFolderDate 1.0.0.2. Note that this new packer plugin is independent of the utility tool SetFolderDate 1.5.mikedepetris wrote: 2019-07-03, 14:55 UTC Which version is this? The page reports:
SetFolderDate 1.0.0.1
Version 2.0.0.1
- first public release
A bit confusing.
Re: [WCX] SetFolderDate
Thanks for testing. Would be very helpful if you could reproduce. If there is an extra message box displayed, then the path ofthe appropriate file is display in the title bar.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
I get "Failed to get last write time", and then another alert "Plugin - Write error!" And this is repeatable.
Digging it down, applying the plugin to each subdirectory, I found the error happens for what seems a very long name:
directory:
"e:\p2p\filmvisti\Valerian.and.the.City.of.a.Thousand.Planets.-.Valerian.e.la.città.dei.mille.pianeti.(2017).French.English-language.3D.science.fiction.adventure.Luc.Besson\" <DIR> 05/01/2018 11:21 -a--
with only this file:
"e:\p2p\filmvisti\Valerian.and.the.City.of.a.Thousand.Planets.-.Valerian.e.la.città.dei.mille.pianeti.(2017).French.English-language.3D.science.fiction.adventure.Luc.Besson\valerian.e.la.citta.dei.mille.pianeti.2017.bdrip.1080p.x264.dts.ita.ac3.eng.subs.lele753.mkv" 9,928,000,082 05/01/2018 11:21 -a--
Digging it down, applying the plugin to each subdirectory, I found the error happens for what seems a very long name:
directory:
"e:\p2p\filmvisti\Valerian.and.the.City.of.a.Thousand.Planets.-.Valerian.e.la.città.dei.mille.pianeti.(2017).French.English-language.3D.science.fiction.adventure.Luc.Besson\" <DIR> 05/01/2018 11:21 -a--
with only this file:
"e:\p2p\filmvisti\Valerian.and.the.City.of.a.Thousand.Planets.-.Valerian.e.la.città.dei.mille.pianeti.(2017).French.English-language.3D.science.fiction.adventure.Luc.Besson\valerian.e.la.citta.dei.mille.pianeti.2017.bdrip.1080p.x264.dts.ita.ac3.eng.subs.lele753.mkv" 9,928,000,082 05/01/2018 11:21 -a--
Re: [WCX] SetFolderDate
Thanks for reporting. Should be fixed by SetFolderDate 1.0.0.4. Since totalcmd.net is currently not available you can get it from here.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
It's still giving the same error, tried running TC as admin, 32 and 64 bit same result.tbeu wrote: 2019-07-08, 09:14 UTC Thanks for reporting. Should be fixed by SetFolderDate 1.0.0.4. Since totalcmd.net is currently not available you can get it from here.
Re: [WCX] SetFolderDate
Very strange. Can reproduce in the Release configuration, but not in the Debug configuration. Need to analyze...
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
The redate works ok if I rename the directory to something short. If I set it back to:
"Valerian.and.the.City.of.a.Thousand.Planets.-.Valerian.e.la.città.dei.mille.pianeti.(2017).French.English-language.3D.science.fiction.adventure.Luc.Besson"
then I get the error alerts, and I also found with openedfilesview that TC keeps the directory locked.
"Valerian.and.the.City.of.a.Thousand.Planets.-.Valerian.e.la.città.dei.mille.pianeti.(2017).French.English-language.3D.science.fiction.adventure.Luc.Besson"
then I get the error alerts, and I also found with openedfilesview that TC keeps the directory locked.
Re: [WCX] SetFolderDate
Both issues should be fixed by updated version SetFolderDate 1.0.0.5.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
It's working good on the same dir structure now, thanks, more testing coming =)tbeu wrote: 2019-07-12, 12:43 UTC Both issues should be fixed by updated version SetFolderDate 1.0.0.5.
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: [WCX] SetFolderDate
Did some more testing, let's talk about empty directories, what should we do with them? At the moment their timestamp stays untouched when it is the newest in the parent tree and this becomes the timestamp for all. Well in most case I would like to set the timestamp only to the most recent actual file in the tree, not directory. For me this would work always, don't know if it should be optional behavior as I see other tools let you choose what to do with empty dirs.
Re: [WCX] SetFolderDate
Should be configurable by SetFolderDate 1.1.0.0.
Last edited by tbeu on 2019-07-20, 07:05 UTC, edited 2 times in total.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact: