/// <summary>
 /// Converts command arguments from binary form to string using current paths encoding.
 /// </summary>
 /// <param name="arguments">Arguments in binary form</param>
 /// <param name="session">FTP session context</param>
 /// <returns>Command arguments as string.</returns>
 protected override string ReadArguments(IArrayBufferView arguments, FtpSessionState session)
 {
     return(arguments.ToString(session.PathEncoding));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Converts command arguments from binary form to string using current control channel encoding.
 /// </summary>
 /// <param name="arguments">Arguments in binary form</param>
 /// <param name="session">FTP session context</param>
 /// <returns>Command arguments as string.</returns>
 protected virtual string ReadArguments(IArrayBufferView arguments, FtpSessionState session)
 {
     return(arguments.ToString(session.ControlEncoding));
 }