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