I think I'm still a little confused. But let's see if this is right:
You start your script
You type in a path (path)
The UI comes up
You want browser to show a file browser view using your path *(quick way would be a tableview) *
If that's the case you first need to construct your data differently. You will need either a list or a dictionary to use for a tableview data source. Have you made a tableview before?
Did you try os.listdir like @dglessus mentioned?
#os.listdir takes a path argument
my_file_list = os.listdir('../Documents')
Also: You could get path input from a console.input_alert() (a popup) rather than typing it into the console.