1
0
mirror of https://github.com/taigrr/crocgui synced 2025-01-18 04:03:16 -08:00
crocgui/platforms_android.go
2021-02-13 18:59:14 -06:00

19 lines
329 B
Go

package main
import (
"net/url"
"strings"
)
const DEFAULT_DOWNLOAD_DIR = "/storage/emulated/0/Download"
func fixpath(fpath string) string {
if strings.Contains(fpath, "%3A") {
fpath, _ = url.PathUnescape(fpath)
colIdx := strings.Index(fpath, ":")
fpath = "/storage/emulated/0/" + fpath[colIdx+1:]
}
return fpath
}