Table of Contents

Class PathSelectorFluentFtp

Namespace
SunamoFluentFtp._public.SunamoFtp.Base
Assembly
SunamoFluentFtp.dll

Manages path navigation and token manipulation for FTP operations

public class PathSelectorFluentFtp
Inheritance
PathSelectorFluentFtp
Inherited Members
Extension Methods

Constructors

PathSelectorFluentFtp(string)

Initializes a new instance of PathSelectorFluentFtp. The first parameter is the highest folder, can be set to C:, www, SE, or anything else. Works with either \ or / - depending on what is found in the parameter. Other delimiters can be added freely.

public PathSelectorFluentFtp(string initialDirectory)

Parameters

initialDirectory string

Initial directory path

Properties

ActualPath

Gets or sets the current path

public string ActualPath { get; set; }

Property Value

string

CanGoToUpFolder

Gets whether navigation to parent folder is possible

public bool CanGoToUpFolder { get; }

Property Value

bool

Delimiter

Gets the delimiter used for path separation

public string Delimiter { get; }

Property Value

string

FirstToken

Gets the first token in the path

public string FirstToken { get; }

Property Value

string

IndexZero

Index of the first token (0 or 1 depending on whether first token must exist)

public int IndexZero { get; set; }

Property Value

int

Tokens

List of path tokens

public List<string> Tokens { get; set; }

Property Value

List<string>

Methods

AddToken(string)

Adds a token to the path

public void AddToken(string token)

Parameters

token string

Token to add

DivideToTokens(string)

Divides a path string into tokens

public List<string> DivideToTokens(string path)

Parameters

path string

Path to divide

Returns

List<string>

List of path tokens

GetLastToken()

Gets the last token in the path

public string GetLastToken()

Returns

string

Last token

RemoveLastToken()

Removes the last token if possible

public void RemoveLastToken()

RemoveLastTokenForce()

Removes the last token without checking if it's possible

public void RemoveLastTokenForce()