Skip to content

Commit 20967f6

Browse files
committed
Fix bug trying to open folder.
1 parent 61fd2db commit 20967f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced_new_file/commands/new_file_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def single_file_action(self, path, apply_template=True):
4545
sublime.error_message("Cannot create '" + path +
4646
"'. See console for details")
4747
print("Exception: %s '%s'" % (e.strerror, e.filename))
48-
if attempt_open:
48+
if attempt_open and os.path.isfile(path):
4949
file_view = self.open_file(path)
5050
if not file_exist and apply_template:
5151
file_view.settings().set("_anf_new", True)

0 commit comments

Comments
 (0)