Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi idFTP: "Could not create file." (https://www.delphipraxis.net/101486-idftp-could-not-create-file.html)

phreax 14. Okt 2007 11:02


idFTP: "Could not create file."
 
Hallo Zusammen,
Ich habe ein Programm welches Backups von einem Windows 2003 Server auf einen FTP-space schiebt.

Mein Problem ist: Das Programm läuft auf meinem PC (Win XP Home Sp2) wie es soll, aber auf dem Server kommt immer der Fehler:
Zitat:

10/14/2007 11:39:25 AM Error @ TbackUpDeamon.doBackup Msg: Could not create file.
Class: EIdReplyRFCError
Hier Code der Uploadprocedure:
Delphi-Quellcode:
procedure TBackUpDeamon.Dobackup;
begin
  try
  if fDataBasePath = '' then
    raise EBackUpDeamonError.Create('Kein Datenbankpfad angegeben');
  Self.WirteHistory(DateTimeToStr(now)+' Beginn des FTP Uploads...');
  CopyFile(PChar(fDataBasePath),PChar(ChangeFileExt(fDataBasePath,'.bck')),False); //Kopie erstellen, damit es keine Probleme bei gleichzeitigem Zugriff gibt...
  fIdFTP.Connect;
fIdFTP.Put(ChangeFileExt(fDataBasePath,'.bck'),ChangeFileExt(ExtractFileName(fDataBasePath),'-'+DateToStr(now)+'.SQLite'));
  fIdFTP.Quit;
  Self.WirteHistory(DateTimeToStr(now)+' FTP Upload erfolgreich beendet...');
  except
    On E: Exception do Self.WirteHistory(DateTimeToStr(now)+' Error @ TbackUpDeamon.doBackup Msg: '+E.Message+' Class: '+E.ClassName);
  end;
end;
Danke für alle konstruktiven Beiträge im voraus :thumb:

Grüße phreax

phreax 15. Okt 2007 11:13

Re: idFTP: "Could not create file."
 
Der Fehler war eigentlich recht simpel, da es sich um ein englisches Betriebssystem handelt, wird das Datum als
Zitat:

2007/10/16
ausgegeben, was natürlich vom FTP-Server als Verzeichnisangabe interpretiert wird...


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:33 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz