Xceed FTP Library Documentation
XceedFtp control reference / Properties / AutoRefreshCurrentFolder property
In This Topic
    AutoRefreshCurrentFolder property
    In This Topic

    Description

    This property controls whether or not, certain methods will send the PWD command at the end of their operation.

    Methods that send the PWD command do not report errors in the case where the PWD command fails. For example, if the Connect method successfully connects and logs on but the PWD command fails, the Connect method will still succeed and remain connected.

    Whenever a PWD command fails or the AutoRefreshCurrentFolder is set to false, the first time the user accesses the CurrentFolder property, the PWD command will be sent.

    Data type

    Boolean

    Default value

    True

    Declaration  

    HRESULT AutoRefreshCurrentFolder( [out, retval] VARIANT_BOOL* pbVal );

    HRESULT AutoRefreshCurrentFolder( [in] VARIANT_BOOL bVal );

    Applicable methods

    Connect, ChangeUser, ChangeCurrentFolder, ChangeToParentFolder, SendCommand