Support ?folder=x in directories