Currently the code throws an error if the selected directory does not exist. Instead of this, the code could create the directory automatically.
Currently the code throws an error if the selected directory does not exist. Instead of this, the code could create the directory automatically.