/
documents/
document.docx
downloads/
zippedfile/
notavirus.exe
coolgoats.mp3
zippedfile.zip
pictures/
myvacation.png
- All directories names must end with a "/"
All directories names must end with a "/" no longer necessary
- You may use any number of spaces to indent the tree (minimum 1)
- Directories must be listed before files in the same directory
- Directories and files should be listed in lexographical alphabetical order
Directories and files should be listed in lexographical alphabetical order
- The character "." lexographically comes before any alphabetical character
The character "." lexographically comes before any alphabetical character
- You may output the contents of directories in any order you wish
/
documents/
document.docx
downloads/
zippedfile/
notavirus.exe
coolgoats.mp3
zippedfile.zip
pictures/
myvacation.png
Input 3:
Alphabetical listing of directories and filesAlphabetical listing of directories and files no longer necessary
/
a/
b/
c/
a.txt
aa.txt
ab.txt
b.txt
c.txt
84
mkdir folder1
cd folder1
cd ../folder2
touch file.txt
/
folder1/
file.txt
This is code-golf, shortest code in UTF-8 bytes wins.
Edit: output requirements have been relaxed a little bit