(destination, backupName string)
| 456 | } |
| 457 | |
| 458 | func newLocalExportStorage(destination, backupName string) (*localExportStorage, error) { |
| 459 | bdir, err := filepath.Abs(filepath.Join(destination, backupName)) |
| 460 | if err != nil { |
| 461 | return nil, err |
| 462 | } |
| 463 | |
| 464 | if err = os.MkdirAll(bdir, 0700); err != nil { |
| 465 | return nil, err |
| 466 | } |
| 467 | |
| 468 | return &localExportStorage{destination, backupName}, nil |
| 469 | } |
| 470 | |
| 471 | func (l *localExportStorage) OpenFile(fileName string) (*ExportWriter, error) { |
| 472 | fw := &ExportWriter{relativePath: filepath.Join(l.relativePath, fileName)} |
no outgoing calls
no test coverage detected
searching dependent graphs…