Skip to main content

FtpFilesystemListener Class

NuGet: GHIElectronics.TinyCLR.Networking.Ftp
Assembly: GHIElectronics.TinyCLR.Networking.Ftp
Namespace: GHIElectronics.TinyCLR.Networking.Ftp

An FTP listener that serves files from a real filesystem directory under a virtual root.

public class FtpFilesystemListener : FtpListener

Constructors

FtpFilesystemListener(String virtualRoot, String filesystemRoot)

public FtpFilesystemListener(String virtualRoot, String filesystemRoot) : this(virtualRoot, filesystemRoot, true)

Creates a listener that maps the virtual root to the filesystem directory, allowing uploads.

FtpFilesystemListener(String virtualRoot, String filesystemRoot, bool uploadsAllowed)

public FtpFilesystemListener(String virtualRoot, String filesystemRoot, bool uploadsAllowed)

Creates a listener that maps the virtual root to the filesystem directory, optionally allowing uploads.

Properties

FilesystemRoot

public String FilesystemRoot { get; set; }

The filesystem directory whose contents are served.

VirtualRoot

public String VirtualRoot { get; set; }

The virtual root path that clients see, mapped onto the filesystem directory.

UploadsAllowed

public bool UploadsAllowed { get; set; }

Whether clients are allowed to upload files.

Methods

Start()

public override void Start()

Start the listener (inherited)

Stop()

public override void Stop()

Stop the listener (inherited)