public void Handle(FileEntity entity) { var filePath = Path.Combine( _options.MovePath, entity.FileName.GetFileName(!_options.DisableFileNameAddedTimeStamp)); _man.Move(entity.FullPath, filePath); entity.LockBy(this); }
public void Handle(FileEntity entity) { var dstPath = getRealBackupPath(entity); _man.Move(entity.FullPath, dstPath); entity.LockBy(this); string getRealBackupPath(FileEntity entity1) => Path.Combine( _options.BackupPath, _backupDirLinks, entity1.NewTime.ToString("yy-MM-dd"), entity1.FileName.GetFileName(!_options.DisableFileNameAddedTimeStamp)); }
public void Handle(FileEntity entity) { _man.Delete(entity.FullPath); entity.LockBy(this); }