Location code now better handle windows path

This commit is contained in:
neilotoole 2022-12-31 20:57:10 -07:00
parent ed9aa38a67
commit fe61e5efe5

View File

@ -305,8 +305,9 @@ func isFpath(loc string) (fpath string, ok bool) {
return "", false
}
if strings.Contains(loc, ":") {
if strings.Contains(loc, "sqlite:") {
// Excludes "sqlite:my_file.db"
// Be wary of windows paths, e.g. "D:\a\b\c.file"
return "", false
}