public EncryptFileOperation(LocalPath source, LocalPath target, RecipientCard recipientCard) { this.Title = "Encrypt " + source.AsRelativeToRoot(); this.source = source; this.target = target; this.recipientCard = recipientCard; }
public DecryptFileOperation(LocalPath source, LocalPath target, PersonalCard personalCard, string password) { this.Title = "Decrypt " + source.AsRelativeToRoot(); this.source = source; this.target = target; this.personalCard = personalCard; this.password = password; }
public LocalFile(LocalPath localPath) { this.RelativePath = localPath.AsRelativeToRoot(); this.LocalPath = localPath; this.Bytes = 0; try { var fileInfo = new FileInfo(localPath.Value); this.Bytes = fileInfo.Length; this.Modified = fileInfo.LastWriteTimeUtc; this.Created = fileInfo.CreationTimeUtc; this.ServerPath = localPath.ToServerPath(); } catch (Exception exception) { Console.WriteLine(exception); } }
public DeleteFileOperation(LocalPath filePath) { this.Title = "Delete: " + filePath.AsRelativeToRoot(); this.filePath = filePath; }