Modules (179)

FileIndexManager

deprecated

Description

This is a compatibility shim for legacy Brackets APIs that will be removed soon. Use ProjectManager.getAllFiles() instead.

Dependencies

Functions

Public API

deprecated getFileInfoList

indexname non-nullable string
Returns: $.Promise
a promise that is resolved with an Array of File objects
    function getFileInfoList(indexName) {
        _warn();
        return ProjectManager.getAllFiles(_getFilter(indexName));
    }
Public API

deprecated getFilenameMatches

indexName non-nullable string
filename non-nullable string
Returns: $.Promise
a promise that is resolved with an Array of File objects
    function getFilenameMatches(indexName, filename) {
        _warn();
        
        var indexFilter = _getFilter(indexName);
        
        return ProjectManager.getAllFiles(function (file) {
            if (indexFilter && !indexFilter(file)) {
                return false;
            }
            return file.name === filename;
        });
    }
    
    exports.getFileInfoList = getFileInfoList;
    exports.getFilenameMatches = getFilenameMatches;
});