aboutsummaryrefslogtreecommitdiffstats
path: root/android/paths.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/paths.go')
-rw-r--r--android/paths.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/android/paths.go b/android/paths.go
index b2ee6275..71049eeb 100644
--- a/android/paths.go
+++ b/android/paths.go
@@ -428,6 +428,18 @@ func (p WritablePaths) Strings() []string {
return ret
}
+// Paths returns the WritablePaths as a Paths
+func (p WritablePaths) Paths() Paths {
+ if p == nil {
+ return nil
+ }
+ ret := make(Paths, len(p))
+ for i, path := range p {
+ ret[i] = path
+ }
+ return ret
+}
+
type basePath struct {
path string
config Config