You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/02/07 23:41:19 UTC

[jira] [Commented] (CB-5990) findPlugins function doesn't honor its comment

    [ https://issues.apache.org/jira/browse/CB-5990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13895170#comment-13895170 ] 

Bas Bosman commented on CB-5990:
--------------------------------

Made the comment generic and added '.git' to the exclusions:
https://github.com/apache/cordova-plugman/pull/46

> findPlugins function doesn't honor its comment
> ----------------------------------------------
>
>                 Key: CB-5990
>                 URL: https://issues.apache.org/jira/browse/CB-5990
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugman
>    Affects Versions: 3.3.0
>            Reporter: Josh Soref
>
> This is the code:
> {quote}
>     // List the directories in the path, ignoring any files, .svn, etc.
>     findPlugins:function(plugins_dir) {
>         var plugins = [],
>             stats;
>         if (fs.existsSync(plugins_dir)) {
>             plugins = fs.readdirSync(plugins_dir).filter(function (fileName) {
>                stats = fs.statSync(path.join(plugins_dir, fileName));
>                return fileName != '.svn' && fileName != 'CVS' && stats.isDirectory();
> {quote}
> It will return .hg, .git, .bzr, ...
> There's no reason to only special case .svn and CVS, but to not mention CVS in the comment.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)