Closed EkaterinaKunskaya closed 7 months ago
@AlreadyBored,
I don't have the rights to change the label, so I'll just post the review here
@EkaterinaKunskaya, there are some notes for you here and below in the comments
- When launching an application without the
username
argument, the application greets the user asAnonymous
but says goodbye to him asundefined
. I assume that the script for saying goodbye is slightly underdeveloped. The behavior of the application without the username argument is not regulated by the task, so I mention it separately.- The application has strange
prompt
behavior (>
character at the beginning of the line while waiting for a command). Theprompt
character appears during input, not during command wait. To avoid this, you can manually call thereadlineInterface.prompt()
method while prompting the user to enter commands.
ctrl+c
or sent .exit
command and proper message is printedThe
ls
command works according to the requirements, but there is a small remark. yourls
command considers entities with typesymbolic-link
as entities with typedirectory
, because the conditional constructdirent.isFile() ? LIST_FILE : LIST_DIRECTORY
. Look at the other methods (isFile
,isDirectory
,isSymbolicLink
,isSocket
, etc.) andswitch..case
or something like that.
The command correctly outputs the contents of the file to the console. Names without spaces are supported (without quotes). Names with spaces are supported (with quotes). Unexpected behavior when quoting a file without a space in the name, but it seems that there was no need to check this kind of "edge case". I consider the point fulfilled.
The specified file is copied to the specified folder according to the requirements, but there is a small remark. When copying to another folder, the
_copy
suffix is added to the file name. Technically, the requirements do not specify the name of the final file, so I don't consider it a violation (I assume it's a feature)
readFileSync
instead of readFile
)
Only
fs.existsSync
is used in the project from Synchronous Api.fsPromises.exists
(Promises Api) does not exist, andfs.exists
(Callback Api) is deprecated.fs.stat
andfs.access
are not direct analogs offs.exists
. I consider the use offs.existsSync
to be acceptable. And in general, on one of the previous threads in the same task in a similar situation, the task curator gave the following answer.
Readme.md
, .gitignore
, etc.)@EternalRival so what is total score?
@EternalRival so what is total score?
fxd
330/330.
congratulations!!!
@ThorsAngerVaNeT could you pls udpate mark?
@ThorsAngerVaNeT could you pls udpate mark?
Yes, sure. I was thinking to wait for all appellations to be completed...
@helenakrasnova , @ThorsAngerVaNeT , thank's so much for your work! @EternalRival , special thank you very much for the cool review)
Score was updated
A link to your deployed project
A link to the project repository on Github.
A link to the task
A Link to the checklist for evaluating the task (if it exists)
A screenshot of cross-checking marks
A final score after self-assessment, with comments
Description of the work performed:
Basic Scope
ctrl+c
or sent.exit
command and proper message is printedAdvanced Scope
readFileSync
instead ofreadFile
)Total score:330/330