File Manager Solution - #1
Open
JesperHogstedDk wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Course program module (for RS School students)
Assignment: File Manager
Description
Your task is to implement File Manager using Node.js APIs.
The file manager should be able to do the following:
Technical requirements
startin following way:Usernameis equal to value that was passed on application start in--usernameCLI argument)Welcome to the File Manager, Username!ctrl + cpressed or user sent.exitcommand into console) the program displays the following text in the consoleThank you for using File Manager, Username, goodbye!You are currently in path_to_working_directorysystem_drive/Users/Username)Invalid inputmessage should be shown and user should be able to enter another commandOperation failedmessage should be shown and user should be able to enter another command (e.g. attempt to perform an operation on a non-existent file or work on a non-existent path should result in the operation fail)List of operations and their syntax:
path_to_directorycan be relative or absolute)cd path_to_directorylscommand output may look likehash path_to_file