Skip to content

Commit

Permalink
Fix bug trying to open folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
skuroda committed Mar 15, 2014
1 parent 61fd2db commit 20967f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced_new_file/commands/new_file_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def single_file_action(self, path, apply_template=True):
sublime.error_message("Cannot create '" + path +
"'. See console for details")
print("Exception: %s '%s'" % (e.strerror, e.filename))
if attempt_open:
if attempt_open and os.path.isfile(path):
file_view = self.open_file(path)
if not file_exist and apply_template:
file_view.settings().set("_anf_new", True)
Expand Down

0 comments on commit 20967f6

Please sign in to comment.