summaryrefslogtreecommitdiffstats
path: root/dom/base/test/create_file_objects.js
blob: 273adc2cd689251652f97cab4f8c6cd9ee5b117d (plain)
1
2
3
4
5
6
7
8
9
10
Components.utils.importGlobalProperties(['File']);

addMessageListener("create-file-objects", function(message) {
  let files = []
  for (fileName of message.fileNames) {
    files.push(File.createFromFileName(fileName));
  }

  sendAsyncMessage("created-file-objects", files);
});