OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package cipd | 5 package local |
6 | 6 |
7 import ( | 7 import ( |
8 "fmt" | 8 "fmt" |
9 "io" | 9 "io" |
10 "io/ioutil" | 10 "io/ioutil" |
11 "os" | 11 "os" |
12 "path/filepath" | 12 "path/filepath" |
13 "strings" | 13 "strings" |
14 ) | 14 ) |
15 | 15 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 } | 406 } |
407 | 407 |
408 func (f *fileSystemDestinationFile) Write(p []byte) (n int, err error) { | 408 func (f *fileSystemDestinationFile) Write(p []byte) (n int, err error) { |
409 return f.nested.Write(p) | 409 return f.nested.Write(p) |
410 } | 410 } |
411 | 411 |
412 func (f *fileSystemDestinationFile) Close() error { | 412 func (f *fileSystemDestinationFile) Close() error { |
413 f.closeCallback() | 413 f.closeCallback() |
414 return f.nested.Close() | 414 return f.nested.Close() |
415 } | 415 } |
OLD | NEW |