Skip to content

Commit

Permalink
fix #54: handle ~ in project folder paths on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
braver authored May 3, 2024
1 parent 0bd86ba commit 5d22b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SideBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class RemoveFolderListener(sublime_plugin.EventListener):
def on_post_window_command(self, window, command_name, args):
if command_name == 'delete_folder':
for folder in window.project_data()['folders']:
if not os.path.exists(folder['path']):
if not os.path.exists(os.path.expanduser(folder['path'])):
window.run_command(
'remove_folder',
{
Expand Down

0 comments on commit 5d22b7f

Please sign in to comment.