Merge pull request #249 from ente-io/fix-desktop-save-extra-dot

Fixed desktop downloaded file had extra dot in name
This commit is contained in:
Abhinav Kumar 2023-10-30 06:28:57 +00:00 committed by GitHub
commit cb3c6fa50d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ export function getUniqueSavePath(filename: string, directory: string): string {
extension,
]
.filter((x) => x) // filters out undefined/null values
.join('.');
.join('');
uniqueFileSavePath = path.join(directory, fileNameWithNumberedSuffix);
}
return uniqueFileSavePath;