if the user does not select any file, but is inside a directory, open that directory.