Skip to content

Conversation

@ISerhiienko
Copy link
Owner

  1. Task - https://github.com/AlreadyBored/nodejs-assignments/blob/main/assignments/nodejs-basics/assignment.md
  2. Deadline - 30.02.2024

Basic Scope

File system (src/fs)
+6 create.js - done
+10 copy.js - done
+10 rename.js - done
+6 delete.js - done
+6 list.js - done
+6 read.js - done

Command line interface(src/cli)
+6 env.js - done
+6 args.js - done

Modules(src/modules)
+20 cjsToEsm.cjs - done

Hash (src/hash)
0 calcHash.js - not done

Streams (src/streams)
+10 read.js - done
+10 write.js - done
+10 transform.js - done

Zlib (src/zip)
+10 compress.js - done
+10 decompress.js - done

Advanced Scope

Worker Threads (src/wt) - not done
0 worker.js implemented properly
0 main.js implemented properly

Child Processes (src/cp) - done
+10 spawns child process
+10 child process stdin receives input from master process stdin
+10 child process stdout sends data to master process stdout

console.log("Create operation complete.");
} catch (error) {
if (error.code === "EEXIST") {
console.error("Error: File already exists.");
Copy link

@ElenVasileva ElenVasileva Feb 1, 2024

Choose a reason for hiding this comment

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

From task description:

Error with message FS operation failed must be thrown

(console.log instead of throw error, here and everywhere)

Choose a reason for hiding this comment

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

The function doesn't write error message "Error accessing folders:" when source folder doesn't exist
("if files folder doesn't exist Error with message FS operation failed must be thrown")

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.

3 participants