Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set/Sync server file FTP timestamp to local source?

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
Hi all - it seems as if over the last 8y or so FTP programs have graced us with the ability to set timestamps on local files downloaded from a server to that of the server source.

However - nowhere can I find anyway to do the opposite, and set/match server timestamps to that of a local source. Searching online yields only 2 ideas - putting the timestamp in the front of the filename (archaic) or zipping the files then unzipping them on the server (I can't just unzip files on my webhost? plus they also pointed out they would maintain their permissions too).

Unix commands like touch
surely should be involved in some kind of tool/script or whatever to do what I'm after? I really don't know how to solve this. I could operate on the files using a PHP script if I wrote one, but I don't know how I'd write one that would change the timestamps on the files nor how it would know what to change them too based on local source files on my PC. Then of course there's making it perform this on a directory + subdirectories ...

So am I going insane or has noone ever needed to make server timestamps matter rather than just being when-uploaded rather than when-file-originally-made? o_O All input welcome!

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top