public void SetAttributes(string path, SftpFileAttributes fileAttributes) { CheckDisposed(); if (_sftpSession == null) throw new SshConnectionException("Client not connected."); var fullPath = _sftpSession.GetCanonicalPath(path); _sftpSession.RequestSetStat(fullPath, fileAttributes); }
public override void SetModifiedTime(SyncQueueItem i, DateTime time) { var attr = _sftpc.GetAttributes(i.CommonPath); attr.LastWriteTime = time; _sftpc.SetAttributes(i.CommonPath, attr); }