We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1937592 + 6477bb9 commit 6ad2a42Copy full SHA for 6ad2a42
1 file changed
src/commands/download-file.ts
@@ -166,9 +166,10 @@ export default class DownloadFile extends Command {
166
};
167
168
private getDownloadPath = async (downloadDirectory: string, driveFile: DriveFileItem, overwrite: boolean) => {
169
+ const ext = driveFile.type?.length && driveFile.type.length > 0 ? `.${driveFile.type}` : undefined;
170
const filename = path.format({
171
name: driveFile.name,
- ext: `.${driveFile.type}`,
172
+ ext: ext,
173
});
174
175
const downloadPath = path.join(downloadDirectory, filename);
0 commit comments