Chrome extension chrome.downloads.download saves the picture can not change the file name and subpath how is it?

is working on a chrome extension tool to grab web images and save them locally. Use the chrome.downloads.download this API, parameter to set as follows:

chrome.downloads.download({
      url: url, // url
      filename: dir, // +
      saveAs: false,
      conflictAction: "uniquify"
    }, function(t) {})

you want to save the renamed file to a subfolder in the local download folder. But it can be done on one mac machine, but not on another mac (it can only be saved by the original file name, and no subpaths can be added).

find a solution!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bbee87-30421.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bbee87-30421.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?