Dropbox API paths are slash-separated regardless of the local OS. Use package path for Dropbox paths and filepath only for local filesystem paths.
(p string)
| 23 | // Dropbox API paths are slash-separated regardless of the local OS. Use package |
| 24 | // path for Dropbox paths and filepath only for local filesystem paths. |
| 25 | func cleanDropboxPath(p string) string { |
| 26 | p = path.Clean(p) |
| 27 | if p == "/" { |
| 28 | return "" |
| 29 | } |
| 30 | return p |
| 31 | } |
| 32 | |
| 33 | func relocationDestination(source, destination string, destinationIsFolder bool) string { |
| 34 | if destinationIsFolder { |
no outgoing calls
no test coverage detected