簡體   English   中英

Delphi-idFTP獲取當前目錄

[英]Delphi - idFTP get current Directory

我想在FTP服務器上獲取當前的Dir。 我知道我可以使用idFtp1.ChangeDir('MyDirectory);切換目錄 但是如何檢查我是否已經加入這個Dir?

使用TIdFTP.RetrieveCurrentDir ,該字符串返回表示服務器上當前工作目錄(當前目錄)名稱的字符串:

  ServerDir := IdFtp1.RetrieveCurrentDir;
  // Do whatever with ServerDir to see if you need to change to a different one

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM