Indicates if multiple files are being processed. If a number, it represents the quantity of files.
Returns Promise<string|undefined>
The filename entered by the user, or undefined if the user chooses not to save.
Example
// Prompts the user to confirm saving and enter a filename. // If the user confirms and enters "myOutput.txt", it returns "myOutput.txt". // If the user declines, it returns undefined. awaitCreateWriteFilePrompt("myInput.txt", "translate");
Example
// Prompts the user to confirm saving and suggests default filenames based on the quantity. // If the user confirms, it returns the filename entered by the user. // If the user declines, it returns undefined. awaitCreateWriteFilePrompt("myInput.pdf", "translate", 3);
Prompts the user to confirm if they want to save the content to a file and, if so, to enter the file's name.