mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-25 01:04:55 +03:00
Location code now better handle windows path
This commit is contained in:
parent
ed9aa38a67
commit
fe61e5efe5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user