Skip to content

Commit

Permalink
Merge pull request #10 from leonid-shevtsov/master
Browse files Browse the repository at this point in the history
Prevent os.walk() from recurring into excluded directories
  • Loading branch information
noklesta committed Mar 4, 2016
2 parents 5ca5633 + e457979 commit df7b03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SublimeQuickFileCreator.py
Expand Up @@ -46,7 +46,6 @@ def get_setting(self, key):

def build_relative_paths(self):
folders = self.window.folders()
view = self.window.active_view()
self.relative_paths = []
self.full_torelative_paths = {}
for path in folders:
Expand All @@ -63,6 +62,8 @@ def build_relative_paths(self):
if not self.excluded.search(relative_path):
self.full_torelative_paths[relative_path] = os.path.join(base, dir)
self.relative_paths.append(relative_path)
else:
dirs.remove(dir)

def move_current_directory_to_top(self):
view = self.window.active_view()
Expand Down

0 comments on commit df7b03c

Please sign in to comment.