Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Manager #2

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

File Manager #2

wants to merge 14 commits into from

Conversation

SpaNb4
Copy link
Owner

@SpaNb4 SpaNb4 commented Feb 4, 2024

  1. Task link: https://github.com/AlreadyBored/nodejs-assignments/blob/main/assignments/file-manager/score.md
  2. Deadline: 30.01.2024
  3. Score: 330 / 330

You can use double quotes (") to work with files or folders that contain spaces in their names. For example:

cat "file with spaces.txt"
cp "file with spaces.txt" "/path/to/new directory"

Basic Scope

General

  • Application accepts username and prints proper message (+6)
  • Application exits if user pressed ctrl+c or sent .exit command and proper message is printed (+10)

Operations fail

  • Attempts to perform an operation on a non-existent file or work on a non-existent path result in the operation fail (+20)
  • Operation fail doesn't crash application (+10)

Navigation & working directory operations implemented properly

  • Go upper from current directory (+10)
  • Go to dedicated folder from current directory (+10)
  • List all files and folders in current directory (+20)

Basic operations with files implemented properly

  • Read file and print its content in console (+10)
  • Create empty file (+10)
  • Rename file (+10)
  • Copy file (+10)
  • Move file (+10)
  • Delete file (+10)

Operating system info (prints following information in console) implemented properly

  • Get EOL (default system End-Of-Line) (+6)
  • Get host machine CPUs info (+10)
  • Get home directory (+6)
  • Get current system user name (+6)
  • Get CPU architecture for which Node.js binary has compiled (+6)

Hash calculation implemented properly

  • Calculate hash for file (+20)

Compress and decompress operations

  • Compress file (using Brotli algorithm) (+20)
  • Decompress file (using Brotli algorithm) (+20)

Advanced Scope

Stream Operations

  • All operations marked as to be implemented using certain streams should be performed using Streams API (+30)
  • No synchronous Node.js API with asynchronous analogues is used (+20)

Codebase Structure

  • Codebase is written in ESM modules instead of CommonJS (+20)
  • Codebase is separated (at least 7 modules) (+20)

Forfeits

  • -95% of total task score Any external tools/libraries are used
  • -30% of total task score Commits after deadline (except commits that affect only Readme.md, .gitignore, etc.)

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.

1 participant