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
initialDirectorystringInitial directory path
Properties
ActualPath
Gets or sets the current path
public string ActualPath { get; set; }
Property Value
CanGoToUpFolder
Gets whether navigation to parent folder is possible
public bool CanGoToUpFolder { get; }
Property Value
Delimiter
Gets the delimiter used for path separation
public string Delimiter { get; }
Property Value
FirstToken
Gets the first token in the path
public string FirstToken { get; }
Property Value
IndexZero
Index of the first token (0 or 1 depending on whether first token must exist)
public int IndexZero { get; set; }
Property Value
Tokens
List of path tokens
public List<string> Tokens { get; set; }
Property Value
Methods
AddToken(string)
Adds a token to the path
public void AddToken(string token)
Parameters
tokenstringToken to add
DivideToTokens(string)
Divides a path string into tokens
public List<string> DivideToTokens(string path)
Parameters
pathstringPath to divide
Returns
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()