Autor Beitrag
AScomp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 162


Delphi 5, Delphi 7, Delphi 2007, Delphi 2009, Delphi XE, Delphi 10 Seattle
BeitragVerfasst: So 15.04.12 16:23 
Hallo zusammen,

ich sehe immer wieder, dass in Beiträgen empfohlen wird, ein IdFTP.Noop zu senden, nachdem IdFTP.ChangeDir() aufgerufen wurde.

Meine Frage wäre jetzt, was der Sinn dahinter ist. ChangeDir ist doch bereits ein Befehl, der mit dem FTP-Server kommuniziert und ihm somit sagt "ich lebe noch". Wozu ein Noop direkt nach einem FTP-Befehl?

Danke und Gruß

Andy
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 16.04.12 10:23 
Moin!

Das hört sich nach einem Workaround für leicht buggy implementierte FTP-Server an oder so. :? Aber ohne weitere Infos dazu kann man wohl nicht mehr tun, als raten. :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
AScomp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 162


Delphi 5, Delphi 7, Delphi 2007, Delphi 2009, Delphi XE, Delphi 10 Seattle
BeitragVerfasst: Mo 16.04.12 15:21 
Hallo,

alles klar, das war auch meine erste Vermutung. Danke dir!
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mo 16.04.12 19:50 
Für sinnvoller würde ich es ja halten, nach dem CWD per PWD nachzufragen ob das Wechseln geklappt hat. Falls irgendwas nicht hingehauen hat, weiß man das dann wenigstens direkt...

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."