Skip to content

Commit

Permalink
Corrected typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Marnalas committed Jan 11, 2025
1 parent 7484555 commit 37e4121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ var buildNewPath = function (currentFileName, fileToRename) {
var directory = (0, fileUtils_1.getFileAbosluteDir)(currentFileName);
var fileName = (0, fileUtils_1.getFileName)(fileToRename.newPath);
var container = (0, fileUtils_1.getContainer)(fileToRename.newPath);
return path_1.default.join(directory, fileName, container);
return path_1.default.join(directory, "".concat(fileName, ".").concat(container));
};
var previewRename = function (args, host, headers, fileInfo, config) { return __awaiter(void 0, void 0, void 0, function () {
var response, error_1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const buildNewPath = (currentFileName: string, fileToRename: IFileToRename): str
const directory = getFileAbosluteDir(currentFileName);
const fileName = getFileName(fileToRename.newPath);
const container = getContainer(fileToRename.newPath);
return path.join(directory, fileName, container);
return path.join(directory, `${fileName}.${container}`);
};

const previewRename = async (
Expand Down

0 comments on commit 37e4121

Please sign in to comment.