Refactored to remove findDir.
Fixes issues with mkdir, touch and trying to remove root.
Print error for symlinks in ls.
Checks for illegal names are done.