Skip to content

Commit

Permalink
Merge branch 'main' into feat/pb-1698-generate-thumbnails-on-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
larryrider authored Jan 17, 2025
2 parents 9f0867d + 6ad2a42 commit 255c2d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/download-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ export default class DownloadFile extends Command {
};

private getDownloadPath = async (downloadDirectory: string, driveFile: DriveFileItem, overwrite: boolean) => {
const ext = driveFile.type?.length && driveFile.type.length > 0 ? `.${driveFile.type}` : undefined;
const filename = path.format({
name: driveFile.name,
ext: `.${driveFile.type}`,
ext: ext,
});

const downloadPath = path.join(downloadDirectory, filename);
Expand Down

0 comments on commit 255c2d9

Please sign in to comment.