We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fd2db commit 20967f6Copy full SHA for 20967f6
advanced_new_file/commands/new_file_command.py
@@ -45,7 +45,7 @@ def single_file_action(self, path, apply_template=True):
45
sublime.error_message("Cannot create '" + path +
46
"'. See console for details")
47
print("Exception: %s '%s'" % (e.strerror, e.filename))
48
- if attempt_open:
+ if attempt_open and os.path.isfile(path):
49
file_view = self.open_file(path)
50
if not file_exist and apply_template:
51
file_view.settings().set("_anf_new", True)
0 commit comments