ok(data[i]instanceofFile||data[i]instanceofDirectory,"Just Files or Directories");
if(data[i]instanceofDirectory){
isnot(data[i].name,'/',"Subdirectory should be called with the leafname");
isnot(data[i].path,'/',"Subdirectory path should be called with the leafname");
isnot(data[i].path,dir.path,"Subdirectory path should contain the parent path.");
is(data[i].path,createPath(dir,data[i]),"Subdirectory path should be called parentdir.path + '/' + leafname: "+data[i].path);
}
if(data[i]instanceofFile){
is(data[i].webkitRelativePath,createRelativePath(dir,data[i]),"File.webkitRelativePath should be called: parentdir.path + '/' + file.name: "+data[i].webkitRelativePath);
ok(data[i]instanceofFile||data[i]instanceofDirectory,"Just Files or Directories: "+data[i].name);
if(data[i]instanceofDirectory){
isnot(data[i].name,'/',"Subdirectory should be called with the leafname");
is(data[i].path,createPath(aDirectory,data[i]),"Subdirectory path should be called parentdir.path + '/' + leafname: "+data[i].path);
if(aRecursive){
promises.push(checkSubDir(data[i]));
}
}
if(data[i]instanceofFile){
is(data[i].webkitRelativePath,createRelativePath(aDirectory,data[i]),"File.webkitRelativePath should be called file.name: "+data[i].webkitRelativePath);