Get FS input as tree structure, handle input.