ai-renamer
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"license": "GPL-3.0", | ||
@@ -4,0 +4,0 @@ "name": "ai-renamer", |
const path = require('path') | ||
const fs = require('fs').promises | ||
const isImage = require('./isImage') | ||
const saveFile = require('./saveFile') | ||
const getNewName = require('./getNewName') | ||
@@ -39,6 +39,3 @@ const readFileContent = require('./readFileContent') | ||
const dir = path.dirname(filePath) | ||
const newFileName = newName + ext | ||
const newPath = path.join(dir, newFileName) | ||
await fs.rename(filePath, newPath) | ||
const newFileName = await saveFile({ ext, newName, filePath }) | ||
console.log(`🟢 Renamed: ${fileName} to ${newFileName}`) | ||
@@ -45,0 +42,0 @@ } catch (err) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48099
15
307