B2G/gecko/netwerk/test/httpserver/test/test_default_index_handler.js
/**
 * Create a file/directory with the given name underneath parentDir, and
 * append an object with name/isDirectory properties to lst corresponding
 * to it if the file/directory could be created.
 */
Create a file/directory with the given name underneath parentDir, and
append an object with name/isDirectory properties to lst corresponding
to it if the file/directory could be created.
Create a file / directory with the given name underneath parentDir and append an object with name / isDirectory properties to lst corresponding to it if the file / directory could be created .
function makeFile(name, isDirectory, parentDir, lst)
{
  var type = Ci.nsIFile[isDirectory ? "DIRECTORY_TYPE" : "NORMAL_FILE_TYPE"];
  var file = parentDir.clone();
  try
  {
    file.append(name);
    file.create(type, 0755);
    lst.push({name: name, isDirectory: isDirectory});
  }
  catch (e) {  }
}
function makeFile ( name , isDirectory , parentDir , lst ) { var type = Ci . nsIFile [ isDirectory ? "DIRECTORY_TYPE" : "NORMAL_FILE_TYPE" ] ; var file = parentDir . clone ( ) ; try { file . append ( name ) ; file . create ( type , 0755 ) ; lst . push ( { name : name , isDirectory : isDirectory } ) ; } catch ( e ) { } }
Create a file/directory with the given name underneath parentDir, and
 append an object with name/isDirectory properties to lst corresponding
 to it if the file/directory could be created.
Create a file / directory with the given name underneath parentDir and append an object with name / isDirectory properties to lst corresponding to it if the file / directory could be created .
/* OS probably doesn't like file name, skip */