src/file/FileUtils.js
function getNativeModuleDirectoryPath(module) {
        var path;

        if (module && module.uri) {
            path = decodeURI(module.uri);

            // Remove module name and trailing slash from path.
            path = path.substr(0, path.lastIndexOf("/"));
        }
        return path;
    }
function getNativeModuleDirectoryPath(module) {
        var path;

        if (module && module.uri) {
            path = decodeURI(module.uri);

            // Remove module name and trailing slash from path.
            path = path.substr(0, path.lastIndexOf("/"));
        }
        return path;
    }
function getNativeModuleDirectoryPath ( module ) { var path ; if ( module && module . uri ) { path = decodeURI ( module . uri ) ; // Remove module name and trailing slash from path. path = path . substr ( 0 , path . lastIndexOf ( "/" ) ) ; } return path ; }
Given the module object passed to JS module define function,
convert the path to a native absolute path.
Returns a native absolute path to the module folder.

WARNING: unlike most paths in Brackets, this path EXCLUDES the trailing "/".
@return {string}
Given the module object passed to JS module define function convert the path to a native absolute path . Returns a native absolute path to the module folder .