I would like to move an entire folder including its subfolder to another folder using google script. I found this sample script on http://ctrlq.org/. However, the getfiles() method seems to limit to files under that folder. How can I solve this problem? Thanks in advance.
function moveFiles(source_folder, dest_folder) {
  
  var files = source_folder.getFiles();
 
  while (files.hasNext()) {
 
    var file = file.next();
    dest_folder.addFile(file);
    source_folder.removeFile(file);
 
  }
}