Skip to content

A Node.js app that reads commands associated with creating, appending, deleting, and renaming files from a file and executes them.

Notifications You must be signed in to change notification settings

dmehra2102/file-system-node-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.

    About

    A Node.js app that reads commands associated with creating, appending, deleting, and renaming files from a file and executes them.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published