Download ForceDatesForTree

ForceDatesForTree File Tool

March 17, 2008

ForceDatesForTree
Copyright © 2008 M. Scott Gartner
Version 1.0
Use this at your own risk.

Force Dates For Tree is a simple utility that walks through a source tree, compares it to a destination tree, and any files it finds that match by file name (and optionally in size) it ensures also match in last write date. Note that it does not actually compare the two files, just their sizes.  Note that it matches file names case sensitive.

This utility is useful if you have two synchronized directory trees but for some reason the write dates for one set have become either corrupted or simply updated. This will allow you to bring them back into synch quickly so that future comparisons will correctly be able to tell if the files have changed. Keep in mind that this tool will copy the date regardless of whether the destination file's date is older or newer than the source's date.

There is no need to install this program, simply run it. It stores no configuration information or user information. It will not modify any files in the source tree, only in the destination.

I wrote this tool because Jungle Disk has the bad habit of updating the write date on the remote files and I wanted to get that fixed without having to re-upload the files (which costs money).

Note that this tool only supports a Jungle Disk that is installed using the default port number (2667) so if you have customized the port or if you have multiple Jungle Disks this tool may not work properly for you. If you really need the tool to work on a non- standard port, please send me some e-mail and if I get enough people wanting that, I'll go to the trouble of creating the customization to make the port number dynamic.

Note also that you should see "Jungle Disk Detected" show up under the destination text box if the destination is a Jungle Disk. If you do not see this the tool will still work but it will use normal file system calls to change the dates and this causes Jungle Disk to download each file changed. If it detects it the tool talks directly to Jungle Disk to update the date and does not require downloading the file.

Version Summary:

Date Update description
3/18/2008: Initial version
3/20/2008: Updated to talk directly to JD via WebDAV to set the date so that it would not trigger a file download.
3/26/2008: Minor update to handle the fact that Jungle Disk does not store the milleseconds on the Windows file date/times.  This update properly compares the timestamps and finds them equal if the seconds match.
3/27/2008 Updated the date comparison yet again to match them equal if the seconds are within one second.

The program requires that you have .net 2.0 installed on your machine.  If you do not already have .net 2.0, you can get it from Microsoft at http://www.microsoft.com/downloads. If you're not sure you can look in your "Administrative Tools" folder (in your Control Panel) to see if you have an entry like "Microsoft .NET Framework 2.0 Configuration."

For more information about this program contact: Scott Gartner

Return Home


Copyright © 2008 pingbot.com