Skip to content

ant0x64/rss-node-file_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js File Manager

This repository contains the implementation of a File Manager using Node.js APIs in accordance with Task assigments. The File Manager allows users to perform various file operations, interact through the command line interface (CLI), utilize Streams API, get information about the host machine operating system, and perform hash calculations and file compression/decompression.

How to run:

node app.js --username=name

or

npm start

Features

Base Commands

  • ls: list all files and folders in the current directory.
  • up: navigate to the parent directory.
  • cd <path_to_directory>: change the current directory to the specified path.

File Operations

  • cat <source_path>: read the content of the specified file and print it to the console.
  • add <file_path>: create an empty file with the provided name.
  • rn <source_path> <dest_path>: rename the specified file.
  • cp <source_path> <dest_path>: copy the specified file to the new directory.
  • mv <source_path> <dest_path>: move the specified file to the new directory.
  • rm <source_path>: delete the specified file.

Operating System Info

  • os --EOL: print the system's default End-Of-Line character sequence to the console.
  • os --cpus: retrieve information about the host machine's CPUs, including the total number, model, and clock rate for each CPU core.
  • os --homedir: get the home directory of the current user.
  • os --username: get the current system user's name.
  • os --architecture: get the CPU architecture.

Hash Calculation

  • hash <source_path>: calculate the hash for the specified file.

Compression & Decompression

  • compress <source_path> <path_to_destination>: compress the specified file and save it to the destination path.
  • decompress <source_path> <path_to_destination>: decompress the specified file and save it to the destination path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages