We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ecbf8 commit 5468ebaCopy full SHA for 5468eba
src/scripts/import.ts
@@ -25,6 +25,7 @@ import {
25
import { statSync } from "fs";
26
import { CommandArgs } from "../cli.js";
27
import { print } from "../utils/index.js";
28
+import { getFormattedDate } from "../utils/date.js";
29
30
export const run = async (
31
config: Configuration,
@@ -187,7 +188,11 @@ export const run = async (
187
188
189
const destination = config.moveFilesAfterImport[importAccountName];
190
if (destination) {
- renameSync(currentFile, path.join(destination, csvFile));
191
+ const newCsvFile = csvFile.replace(
192
+ ".csv",
193
+ `-IMPORTED-${getFormattedDate()}.csv`
194
+ );
195
+ renameSync(currentFile, path.join(destination, newCsvFile));
196
}
197
198
};
0 commit comments