public override void UploadProfile(IWebDav webdav) { string remotePath = $"{SyncService.REMOTE_FILE_FOLDER}/{FileName}"; FileInfo file = new FileInfo(fullPath); if (file.Length <= maxFileSize) { Log.Write("PUSH file " + FileName); webdav.PutFile(remotePath, fullPath); } else { Log.Write("file is too large, skipped " + FileName); } SetMd5(GetMD5HashFromFile(fullPath)); webdav.PutText(SyncService.REMOTE_RECORD_FILE, this.ToJsonString()); }
public override void UploadProfile(IWebDav webdav) { webdav.PutText(SyncService.REMOTE_RECORD_FILE, this.ToJsonString()); }