-3
Challenge
Given an input x
, create a directory (AKA folder) in the file system with the name x
.
Languages that are not able to create file system directories are excluded from this challenge.
The directory may be created anywhere, as long as the location is writable to the user running the program. Assume that the program is run as a non-privileged user on a modern Linux (or Windows if needed) desktop system.
Clarifications
- Assume that the current directory is
$HOME
/%USERPROFILE%
. - Assume that no file or directory exists with the name given.
- Assume that the filename will only contain the characters
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
. - Assume that the filename will always be 8 characters long or shorter.
Rules
- The directory must actually be created. You can't just say "I made it in /dev/null".
- Standard loopholes apply.
- This is code-golf.
4Apart from leaving zero room for golfing (in what languages would the straightforward approach not be the shortest?), your challenge is also unclear. Does the third paragraph mean we have to create it in our home folder? Can we assume we're already there? What if a directory or file of the same name already exists? – Dennis – 2017-06-01T02:21:50.957
4Also, you might consider waiting a few minutes for feedback before complaining about the lack of it. – Dennis – 2017-06-01T02:22:32.797
@Dennis Clarified. – dkudriavtsev – 2017-06-01T02:24:54.950
Which characters can appear in the filename? – Dennis – 2017-06-01T04:10:28.847
@Dennis a-zA-Z0-9 upto 8 chars – dkudriavtsev – 2017-06-01T04:11:13.460
4You should really start using the Sandbox, Mendeleev. – Shaggy – 2017-06-01T08:38:23.480