Skip to content

Commit

Permalink
Fix nom de fichier non modif. qd. il existe déjà
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-perso committed Mar 11, 2024
1 parent c0503e6 commit 4ec833e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/download.dart
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ class _DownloadPageState extends State<DownloadPage> {
if (File(finalPath).existsSync()) {
int i = 1;
while (File(finalPath).existsSync()) {
finalPath = path.join(downloadDirectory, "${i}_$fileName");
finalPath = path.join(downloadDirectory, "${i}_$fileNamePath");
i++;
}
}
Expand Down

0 comments on commit 4ec833e

Please sign in to comment.