Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 996 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 996 Bytes

file-system-node-js

A Node.js app that reads commands associated with creating, appending, deleting, and renaming files from a file and executes them. The application watches a file named "command.txt" for changes, and every time a change happens, it will read the file's content and do what the user specified.

For instance, if a user writes "create a file text.txt" in the command.txt file and saves it, a file named file.txt will be created in the working directory. We could also specify absolute paths. We have these available operations:

  • creating a file
  • deleting a file
  • renaming a file
  • appending to a file

  • And we should write the commands in the following formats in the command.txt file:
  • create a file
  • delete the file
  • rename the file to
  • add to the file this content:

  • Note that we can only have and execute one command in the command.txt file at a time.