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