ClientSftpChannel - SetStat

[C]

__cdecl FlowSshC_ClientSftpChannel_SetStat(
  FlowSshC_ClientSftpChannel* channel,
  wchar_t const* path,
  FlowSshC_FileAttrs const* fileAttrs,
  FlowSshC_SftpHandler handler,
  void* handlerData);

[C++]

[ClientSftpChannel] void SetStat(
  wchar_t const* path,
  FileAttrs const& fileAttrs,
  RefPtr<SftpHandler> const& response);

[C#]

[ClientSftpChannel] public void SetStat(
  string path,
  FileAttrs fileAttrs,
  SftpHandler response);

Parameters

  • [C] channel: FlowSshC_ClientSftpChannel pointer.
  • [C] handler: A SftpHandler function to be used with the request. Optional.
  • [C] handlerData: An application-defined value to be passed to the handler. Optional.
     
  • path: The remote file whose attributes are to be modified. *
  • fileAttrs: A FileAttrs structure/class.
     
  • [C++/.NET] response: A SftpHandler object to be used with the request. Optional.

Remarks

SetStat is used to modify file or directory attributes. With some operating systems several system calls are required to set various attributes. It is thus possible that the request fails after some of the attributes have already been modified.
* See ClientSftpChannel's remarks about local and remote file namings.