fixes #4 ensure when open folder is being used, we cannot open files.