PowerTCP SSH and SFTP for .NET
AutoSetTime Property




Gets or sets whether the modified time should be updated on a file after a Put or Get.
Syntax
'Declaration
 
<DefaultValueAttribute(True)>
Public Property AutoSetTime As Boolean
'Usage
 
Dim instance As Sftp
Dim value As Boolean
 
instance.AutoSetTime = value
 
value = instance.AutoSetTime
[DefaultValue(true)]
public bool AutoSetTime {get; set;}
[DefaultValue(true)]
public: __property bool get_AutoSetTime();
public: __property void set_AutoSetTime( 
   bool value
);
[DefaultValue(true)]
public:
property bool AutoSetTime {
   bool get();
   void set (    bool value);
}
Remarks

After a Put, a SetAttributes operation is performed to update the transferred file's MTIME attribute if this property is true. This can result in the method throwing an exception if the file is immediately removed or moved on the server.

After a Get, the local file will be updated with the file's modified time on the server if this property is true.

See Also

Reference

Sftp Class
Sftp Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic