d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Nodejs Task: Generate Folders > 100fg
Add Reply New Topic New Poll
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
Jan 2 2020 09:25am
1. In a user-specified directory: process.argv[2], generate folders.
2. User specifies the number of folders to generate.
3. Each folder should contain an "input.txt" with the text "Hi from ${nameOfTheFolder}" and an empty "output.txt"
4. The name of the folder should be jan1, jan2, jan3 et cetera.

Details:

* if the name jan1 exists, the generation function should not overwrite. Instead, it should go to the next date and try to write the folder as "jan2."
* Et cetera for if Jan2 exists.
* After jan31, the folder should be feb1.

This post was edited by kdog3682 on Jan 2 2020 09:29am
Member
Posts: 12,703
Joined: May 17 2013
Gold: 12,935.00
Jan 3 2020 05:43am
it's funny you offer 100 fg for this shit when it's clearly worth a lot more in time even for someone who is experienced in JS
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
Jan 3 2020 11:22am
Quote (Klexmoo @ Jan 3 2020 06:43am)
it's funny you offer 100 fg for this shit when it's clearly worth a lot more in time even for someone who is experienced in JS


In my personal opinion, this is a fun project that should take an experienced developer half an hour, and a beginner about 1-2 hours.

This post was edited by kdog3682 on Jan 3 2020 11:22am
Member
Posts: 12,703
Joined: May 17 2013
Gold: 12,935.00
Jan 3 2020 12:11pm
Quote (kdog3682 @ 3 Jan 2020 18:22)
In my personal opinion, this is a fun project that should take an experienced developer half an hour, and a beginner about 1-2 hours.


yeah, and 100 fg is a joke
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll