mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 10:14:31 -05:00
fix path resolution in startDownloadDirectory
This commit is contained in:
@@ -327,10 +327,10 @@ export class ElectronPlatformService extends PlatformService {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
let downloadPath = path.join(selectedFolder, name)
|
let downloadPath = resolveInsideBase(selectedFolder, name)
|
||||||
let counter = 1
|
let counter = 1
|
||||||
while (fsSync.existsSync(downloadPath)) {
|
while (fsSync.existsSync(downloadPath)) {
|
||||||
downloadPath = path.join(selectedFolder, `${name} (${counter})`)
|
downloadPath = resolveInsideBase(selectedFolder, `${name} (${counter})`)
|
||||||
counter++
|
counter++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user