Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FTP サーバーで現在使用している Dir を取得するのが好きです。Dir を切り替えることができることはわかっていますが、idFtp1.ChangeDir('MyDirectory); 既にこの Dir に入っているかどうかを確認するにはどうすればよいですか?
idFtp1.ChangeDir('MyDirectory);
TIdFTP.RetrieveCurrentDirサーバー上の現在の作業ディレクトリ (現在のディレクトリ) の名前を表す文字列を返すを使用します。
TIdFTP.RetrieveCurrentDir
ServerDir := IdFtp1.RetrieveCurrentDir; // Do whatever with ServerDir to see if you need to change to a different one