mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-04 11:19:55 -05:00
[client] Fix download filename
This commit is contained in:
@@ -88,7 +88,7 @@ class DownloadManager extends StateNotifier<DownloadManagerState> {
|
||||
final basename = p.basename(name);
|
||||
final ext = p.extension(name);
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
final file = File(p.join(dir.path, '$basename ($i)$ext'));
|
||||
final file = File(p.join(dir.path, '$basename ($i).$ext'));
|
||||
if (!file.existsSync()) {
|
||||
file.createSync();
|
||||
return file;
|
||||
|
||||
Reference in New Issue
Block a user