How to give a default value for a file dialog

I’m creating a dialogue box to request a file.

#open window and request file
selectedFile = dialog.createFileParam("fileName","File ")
dialog.refreshUserParamsGUI()
dialog.exec_()'''

How can I pass on a default value that appears on the box ( for example the last opened file or a path taken from a read node)? I’m looking to get something like this:

dialogue%20box

filename.set(’/Home/user/directory’)