Class FTPFunctions

This class provides functions to create directories and upload files to an FTP server.

System.Object
  Stonefield.Library.FTPFunctions
public class FTPFunctions : object

Class Members

MemberDescription

Constructor

Constructor.

CreateDirectory

Creates the specified directory.

public bool CreateDirectory(string path)

DeleteFile

Deletes the specified file on the FTP server.

public bool DeleteFile(string file)

ListDirectory

Lists the files in the specified folder.

public List ListDirectory(string path)

RemoveDirectory

Removes the specified directory.

public bool RemoveDirectory(string path)

Upload

Uploads the specified stream to the FTP server.

public bool Upload(Stream source,     string target)

UploadFile

Uploads the specified file to the FTP server.

public bool UploadFile(string source,     string target)

UploadFolder

Uploads the contents of the specified folder and all subfolders to the FTP server.

public bool UploadFolder(string source,     string target)

Error

The string of any error that occurred.

Requirements

Namespace: Stonefield.Library
Assembly: library.dll