【BCB】【問題】關於Indy TIdFTP元件的List問題 |
答題得分者是:RaynorPao
|
surekem
一般會員 發表:1 回覆:1 積分:0 註冊:2002-10-25 發送簡訊給我 |
請問使用Indy 9.0.17的TIdFTP元件,呼叫List函數時,
例如:
TStringList* ListContent=new TStringList;
IdFTP1->List(ListContent, "*", true);
如此依然會將file資訊list出來,無法只list出directory 但是依據help檔案指出,使用"*"做參數,可以只list出directory:
*.* - All files in the current directory.
* - All directory entries in the current directory.
*. - All files regardless of extension in the current directory.
A??.txt - All text files that have a 3-character name starting with 'A'. 請問要如何解決此問題? 謝謝
|
RaynorPao
版主 發表:139 回覆:3622 積分:7025 註冊:2002-08-12 發送簡訊給我 |
引言: 請問使用Indy 9.0.17的TIdFTP元件,呼叫List函數時, 例如: TStringList* ListContent=new TStringList; IdFTP1->List(ListContent, "*", true); 如此依然會將file資訊list出來,無法只list出directory 但是依據help檔案指出,使用"*"做參數,可以只list出directory: *.* - All files in the current directory. * - All directory entries in the current directory. *. - All files regardless of extension in the current directory. A??.txt - All text files that have a 3-character name starting with 'A'. 請問要如何解決此問題? surekem 你好: (1)可以試著先修改這篇文章中的範例,只要列出「目錄」的部分即可 ><> (>>> < src="http://delphi.ktop.com.tw/loadfile.php?TOPICID=10003806&CC=223734"> -- Enjoy Researching & Developing -- 發表人 - RaynorPao 於 2004/11/22 22:07:15
------
-- 若您已經得到滿意的答覆,請適時結案!! -- -- 欲知前世因,今生受者是;欲知來世果,今生做者是 -- -- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 -- |
surekem
一般會員 發表:1 回覆:1 積分:0 註冊:2002-10-25 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |