Theias workspace initialization

Hello,

If we try to run the Theia application with directory that does not have a diagram to load, it opens with No Folder Opened in the explorer. In this situation is there a way to retrieve the URL initially used to make the request.
For example: the initial request URL to load the diagram is:
http://localhost:3000/#/path/to/workspace
but the directory ``workspace` does not exist. How do i handle this? I want to handle in such a way that if the directory is not there it creates the directory with a dummy file. Is it possible to do so?