Ejemplo n.º 1
0
        public EncryptFileOperation(LocalPath source, LocalPath target, RecipientCard recipientCard)
        {
            this.Title = "Encrypt " + source.AsRelativeToRoot();

            this.source        = source;
            this.target        = target;
            this.recipientCard = recipientCard;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 public DeleteFileOperation(LocalPath filePath)
 {
     this.Title    = "Delete: " + filePath.AsRelativeToRoot();
     this.filePath = filePath;
 }