(remote string)
| 620 | } |
| 621 | |
| 622 | func (f *Fs) unwrapRemote(remote string) string { |
| 623 | remote = cleanPath(remote) |
| 624 | if remote != "" { |
| 625 | // if it's wrapped by crypt we need to check what format we got |
| 626 | if cryptFs, yes := f.isWrappedByCrypt(); yes { |
| 627 | _, err := cryptFs.DecryptFileName(remote) |
| 628 | // if it failed to decrypt then it is a decrypted format and we need to encrypt it |
| 629 | if err != nil { |
| 630 | return cryptFs.EncryptFileName(remote) |
| 631 | } |
| 632 | // else it's an encrypted format and we can use it as it is |
| 633 | } |
| 634 | } |
| 635 | return remote |
| 636 | } |
| 637 | |
| 638 | func (f *Fs) httpExpireRemote(ctx context.Context, in rc.Params) (out rc.Params, err error) { |
| 639 | out = make(rc.Params) |
no test coverage detected