LoopFiles(String) Method

See Also

FtpDLX Class  | FtpDLX Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

JScript

Show All

RemotePath
Full path on the server from where to start enumerating files and folders.
See Also Requirements Languages WeOnlyDo.Client.FTP Send comments on this topic.

LoopFiles(String) Method

Loops through multiple files in a sequence, recursive, giving their names.

[Visual Basic]
Overloads Public Sub LoopFiles( _    ByVal RemotePath As String _ )
[C#]
public void LoopFiles(    string RemotePath );
[JScript]
public function LoopFiles(    RemotePath : String );

Parameters

RemotePath
Full path on the server from where to start enumerating files and folders.

Remarks

This method will just loop through all folders and files on specified RemotePath, and fire LoopItem event for each file/folder it finds - allowing you to save it (for example, in local collection) and then use later for various file/folder operations. wodFtpDLX.NET will not do anything with those items by itself! Since LoopItem event will provide full paths to those files, it is easy to use those paths later on with GetFile, PutFile, DeleteFile (etc.) operations.

If you want to download all those files (and create appropriate directory structure locally) you should use GetFiles method instead.

Do not forget that RemotePath should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FtpDLX Class  | FtpDLX Members  | Overload List

 

 


© WeOnlyDo Software. All Rights Reserved.