Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Delphi программирование > Работа с сетью в Delphi
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 13.05.2008, 20:38   #11
prizrak1390
-=PriZraK=-
Форумчанин
 
Аватар для prizrak1390
 
Регистрация: 12.12.2007
Сообщений: 399
По умолчанию

я вот непонимаю что и как вписать в
Код:
procedure TIdFTP.List(ADest: TStrings; const ASpecifier: string = ''; const ADetails: boolean = true);
prizrak1390 вне форума Ответить с цитированием
Старый 13.05.2008, 21:44   #12
Квэнди
Старожил
 
Аватар для Квэнди
 
Регистрация: 13.12.2006
Сообщений: 3,859
По умолчанию

что именно не понимаешь ? каждый параметр же в хелпе описан
ICQ не для вопросов, а для предложений. Для вопросов используйте форум
IRC канал клуба программистов|Мои статьи
Квэнди вне форума Ответить с цитированием
Старый 13.05.2008, 21:53   #13
prizrak1390
-=PriZraK=-
Форумчанин
 
Аватар для prizrak1390
 
Регистрация: 12.12.2007
Сообщений: 399
По умолчанию

у меня в хелпе по этому компоненту ничего нет. У меня в Delphi нет даже примеров Indy. Только компоненты в палитре
prizrak1390 вне форума Ответить с цитированием
Старый 13.05.2008, 22:52   #14
Квэнди
Старожил
 
Аватар для Квэнди
 
Регистрация: 13.12.2006
Сообщений: 3,859
По умолчанию

по-мойму я уже давал ссылку http://indyproject.org , где можно найти и примеры и документацию


Цитата:
procedure List(
ADest: TIdStrings,
const ASpecifier: string = '',
ADetails: Boolean = True
); overload;
Parameters
Parameters Description
ADest List for files and directories in the current directory.
ASpecifier File mask for the listing. Default value is ''.
ADetails Include file details. Default value is True.

Summary
Retrieves a list of files and directories on the FTP server.
Description
List is an overloaded procedure used to request a list of files or directories in the current or specified directory on the FTP server.
ADest is a TIdStringList argument used to store the raw text values returned from the FTP server directory listing.

ASpecifier is a String value that contains a mask indicating the files and/or directories to be included in the listing. ASpecifier can contain common wildcard characters like '*' and '?'. Some useful masks include:


Mask Usage
*.* 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 the letter 'A'.

Please note that the actual use and meaning of a wildcard character is dependent on the file system implmented on the remote FTP server. There is no universal definition for any one particular wildcard character.

ADetails is a Boolean value that indicates if the list should contain details about the files and directories that match the mask in ASpecifier.

If CanUseMLS contains True, the ExtListDir is called to capture and store the results of the FTP MLSD command in the ADest parameter variable instead of the LIST or NLST commands. No additional processing is performed in the List method under this circumstance, and the method is exited.

When ADetails is False, only the file or directory name is returned in the ADest string list using the FTP NLST command. When ADetails is True, List can return FTP server-dependent details including the file size, date modified, and file permissions for the Owner, Group, and User using the FTP LIST command.

Prior to executing the LIST or NLST commands, the TransferType for the control channel is set to ftASCII. While this is not a requirement of the FTP protocol, it is a common practice in most FTP clients. The previous value of the TransferType property is restored before exiting from the List method.

Textual responses to the FTP command are captured and stored in both the ADest parameter variable and the ListResult property. The value of the UsedMLS property is set to False to indicate that the MLST parser should not be used on textual values in the ListResult property.

List will clear any existing entries found in the DirectoryListing property, and free the collection used for the structured directory listing. The collection is recreated and values in the ListResult are parsed into collection items on the initial read access to the DirectoryListing property.

Example
[Delphi]

AFiles := TIdStringList.Create;
AFtp.List(AFiles, '*.zip', True);

if AFtp.DirectoryListing.Count <> 0 then
begin
FillDirListView(AFtp.DirectoryListi ng)
end;
ICQ не для вопросов, а для предложений. Для вопросов используйте форум
IRC канал клуба программистов|Мои статьи
Квэнди вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск