Autor Beitrag
smepal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP, Linux Mandbrake,SUSE 10.1, SUSE 9 PE, DEBIAN, Win 2000 Pro, Win XP Pro
Delphi
BeitragVerfasst: Fr 02.05.08 18:02 
Also folgendes Problem:
Ich habe ein ini-File, indem Erstellungsdaten von Dateien auf nem FTP Server gespeichert sind. Diese sollen nun, wenn eine Datei auf dem PC und auf dem Server vorliegt abgeglichen werden. Das funktioniert auch, nur leider wird bei Bedarf nicht die neue Datei vom Server geholt, obwohl festgestellt wurde, dass sie neuer ist!

Weiß auch nicht warum das nicht geht!
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
if ((GetFileLastAccessTime(pcpath+'\'+sync_dirs.Items[i]+'\'+ serverlistcl[v]) < dates.ReadDateTime('Files',serverlistcl[v], strtodatetime('02.05.2008 00:00:00'))))    then
          begin
          chronik.Items.Add('              Serverversion ist neuer!');
          chronik.Items.Add('              '+datetimetostr(GetFileLastAccessTime(pcpath+'\'+sync_dirs.Items[i]+'\'+ serverlistcl[v]))+' < '+ datetimetostr(dates.ReadDateTime('Files',serverlistcl[v], strtodatetime('02.05.2008 00:00:00'))));
          deletefile(pcpath+'\'+sync_dirs.Items[i]+'\'+ serverlistcl[v]);
          ftp.Get(serverlistcl[v],pcpath+'\'+sync_dirs.Items[i]+'\'+ serverlistcl[v]);
          chronik.Items.add('Kopiere: '+serverlistcl[v]);
         end;


Die Datei, die ich nach dieser Procedure vorfinde hat immernoch das selbe Erstellungsdatum, wie die alte!
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Fr 02.05.08 18:28 
Welche Klasse ist FTP?
smepal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP, Linux Mandbrake,SUSE 10.1, SUSE 9 PE, DEBIAN, Win 2000 Pro, Win XP Pro
Delphi
BeitragVerfasst: Fr 02.05.08 22:32 
Tidftp
smepal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP, Linux Mandbrake,SUSE 10.1, SUSE 9 PE, DEBIAN, Win 2000 Pro, Win XP Pro
Delphi
BeitragVerfasst: Mo 05.05.08 10:48 
Kann mir keiner helfen?
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 05.05.08 11:03 
www.delphi-treff.de/...nternet/indy/page/4/ :?: :?: :?:
Guck dir mal das an.Ob es hilft weiß ich nicht
smepal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP, Linux Mandbrake,SUSE 10.1, SUSE 9 PE, DEBIAN, Win 2000 Pro, Win XP Pro
Delphi
BeitragVerfasst: Mo 05.05.08 11:58 
nicht wirklich!

Jetzt bekomme ich immer den Fehler "ORT not understood"!

Außerdem ändert sich auch beim Überschreiben das Erstellungsdatum leider nicht!

Das bringt mich nicht weiter!