(paths ...string)
| 415 | } |
| 416 | |
| 417 | func join(paths ...string) string { |
| 418 | ne := make([]string, 0, len(paths)) |
| 419 | |
| 420 | for _, p := range paths { |
| 421 | if len(p) > 0 { |
| 422 | ne = append(ne, p) |
| 423 | } |
| 424 | } |
| 425 | return strings.Join(ne, "/") |
| 426 | } |
| 427 | |
| 428 | // SetFileWriteFlag changes write permissions on a file |
| 429 | // Used to make a file read-only or not. When writeEnabled = false, the write |
no outgoing calls