How to use the file.join function in file

To help you get started, we’ve selected a few file examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 280north / jake / lib / jake / application.js View on Github external
Application.prototype.findJakefileLocation = function() {
    var directory = FILE.cwd();
    var filename = null;

    while (!(filename = this.hasJakefile(directory)) && directory !== "/")// && !this._options.nosearch)
        directory = FILE.absolute(FILE.join(directory, ".."));

    if (!filename)
        return null;

    return [filename, directory];
}
github cappuccino / cappuccino / Objective-J / CommonJS / lib / objective-j / jake / applicationtask.js View on Github external
ApplicationTask.prototype.defineCacheManifestTask = function()
{
    if (!this.shouldGenerateCacheManifest())
        return;

    var productPath = FILE.join(this.buildProductPath(), "");
    var indexFilePath = this.buildIndexFilePath();

    // TODO: can we conditionally generate based on outdated files?
    var manifestPath = FILE.join(productPath, "app.manifest");
    Jake.task(manifestPath, function() {
        require("../cache-manifest").generateManifest(productPath, { index : indexFilePath });
    });

    this.enhance([manifestPath]);
}
github cappuccino / cappuccino / CommonJS / lib / cappuccino / nativehost.js View on Github external
CFPropertyList.modifyPlist(buildNative.join("Contents", "Info.plist"), function(plist) {

        plist.setValueForKey("CFBundleName", defaultBundleName);
        plist.setValueForKey("NHInitialResource", FILE.join(rootBaseName, options.index));

        // merge Cappuccino plist
        var cappPlistPath = rootPath.join("Info.plist");
        if (cappPlistPath.isFile())
            mergePlist(plist, cappPlistPath);

        if (options.extraPlistPath)
            mergePlist(plist, options.extraPlistPath);
    });
}
github nrstott / bogart / lib / bogart / support / router_loader.js View on Github external
RouterLoader.prototype.loadInto = function(app) {
    var routerFiles = this.list();
    for (var i=0;i
github Treeeater / vulCheckerFirefox / lib / ccc.js View on Github external
function initOutputDir(){
	if (writeFlag){
		var dirPath = file.join(profilePath, "testResults");
		if (!file.exists(dirPath)) file.mkpath(dirPath);
		var existingFiles = file.list(dirPath);
		var i = 0;
		for (i = 0; i < existingFiles.length; i++)
		{
			file.remove(file.join(dirPath,existingFiles[i]));
		}
	}
}

file

Higher level path and file manipulation functions.

MIT
Latest version published 11 years ago

Package Health Score

47 / 100
Full package analysis