mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-09-19 23:31:37 +02:00
Detect abs paths for windows fileshare
This commit is contained in:
parent
4e331b5295
commit
b47c704dc0
@ -163,7 +163,7 @@ func logic(key string, value map[string]interface{}, flags *Flags, chans *Channe
|
|||||||
Separator: flags.PathSeparator,
|
Separator: flags.PathSeparator,
|
||||||
}
|
}
|
||||||
|
|
||||||
if isAbs, _ := regexp.MatchString(`^[A-Z]:\\`, key); isAbs == true {
|
if isAbs, _ := regexp.MatchString(`^([A-Z]:)?,\\`, key); isAbs == true {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
newstructure.TorrentFilePath = key
|
newstructure.TorrentFilePath = key
|
||||||
} else { // for unix system find in search paths
|
} else { // for unix system find in search paths
|
||||||
|
Loading…
Reference in New Issue
Block a user