PDA

View Full Version : Script Upgrade Functionality?


Jay
06-27-2003, 06:01 AM
Would it be feasible to build in an option to only upload files with a later modified date recursively? This would be a great way of easily upgrading to newer versions of our favorite scripts (such as forum software, for example), without having to manually pick out each changed file.

For example, let's say your script has the following directories:

/sources/
/skin/
/lang/
/upload/
admin.php
conf_global.php
index.php
extra_stuff.php

You have downloaded and unzipped a newer version of that script, so you navigate to the directory that contains the new files in the local window, navigate to your current script in the remote window, highlight all files and folders in your local window, right click and select "upload changed files"

If the modified dates don't match, it'll upload the one from the local window, then do the same for all child directories automatically.


I realize that FlashFXP has a "Compare" tool, but it doesn't have the functionality that I'm asking for. If this can be built into FlashFXP, it would make it much more attractive to people who use scripts that provide upgrades on a regular basis.

Edit: Needless to say, it wouldn't be useful for FlashFXP to set the file date on the remote window to the upload date. This would make problems for future upgrades. :)

MxxCon
06-27-2003, 06:09 AM
also don't forget that text files can take up different amount of space on different os..Win, *nix, Mac...

so comparing text files by size might not be a good idea

Jay
06-27-2003, 06:12 AM
That's another reason I edited my post. :)

MxxCon
06-27-2003, 06:23 AM
to implement this feature i think FlashFXP will also have to support timezone offset setting for each site..
we'll see what bigstar says..

Jay
06-27-2003, 06:27 AM
I would think that the hour/minute wouldn't be as important as the actual file date itself, but I can understand how small things sometimes create big problems. :)