Skip to content

solution#511

Open
Elber-Kevenny wants to merge 2 commits into
mate-academy:masterfrom
Elber-Kevenny:develop
Open

solution#511
Elber-Kevenny wants to merge 2 commits into
mate-academy:masterfrom
Elber-Kevenny:develop

Conversation

@Elber-Kevenny

Copy link
Copy Markdown

No description provided.

@DanielCamposDevX DanielCamposDevX left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Elber! The basic copy case works and the public check is passing, but I can’t approve this version yet because the solution is not fully aligned with the task requirements.

Please keep the PR focused only on src/app.js, remove unrelated changes, validate that exactly two arguments were provided, and use fs.copyFile instead of reading/writing the file as UTF-8 text. This task should behave like a plain cp source destination command, without extra arguments, flags, or unrelated project changes.

Comment thread src/app.js Outdated
async function copyArch() {
const meusArgumentos = process.argv.slice(2); // ['arq.tx', 'copia.txt']

if (meusArgumentos.length < 2) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Becarefull you re validating if i send less than 2 but what if i send 4 or 5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants