Open rurirei opened 3 years ago
Hi, this is the directory that asset files are hold, like geoip.dat. The path here is a imaginary path, so that the access to these files can be redirected to another location.
so that the access to these files can be redirected to another location
so this is a temporary filedir for the direction like this right?:
temp_dir := "/temp/to/redirect"
reader := func(path string) (io.ReadCloser, error) {
if dir, name := filepath.Split(path); dir == temp_dir {
return gomobileasset.Open(name)
}
}
so that the access to these files can be redirected to another location
so this is a temporary filedir for the direction like this right?:
temp_dir := "/temp/to/redirect" reader := func(path string) (io.ReadCloser, error) { if dir, name := filepath.Split(path); dir == temp_dir { return gomobileasset.Open(name) } }
Yes, that is correct.
hello, could you please say the meaning or according of this dir? @xiaokangwang https://github.com/xiaokangwang/AndroidLibV2ray/blob/master/interact.go#L288