Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Add pyc files to a list of ignored extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinabrahms committed Dec 15, 2012
1 parent 2c54f87 commit 46efcdb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/project/ProjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,14 @@ define(function (require, exports, module) {

/** @param {Entry} entry File or directory to filter */
function shouldShow(entry) {
return [".git", ".gitignore", ".gitmodules", ".svn", ".DS_Store", "Thumbs.db"].indexOf(entry.name) === -1;
if ([".git", ".gitignore", ".gitmodules", ".svn", ".DS_Store", "Thumbs.db"].indexOf(entry.name) > -1) {
return false;
}
var extension = entry.name.split('.').slice(-1);
if (["pyc"].indexOf(extension) > -1) {
return false;
}
return true;
}

/**
Expand Down

0 comments on commit 46efcdb

Please sign in to comment.