the addFile part is shown with strikethrough text. not sure why. is seems to be working. should I change something? looks like this
been using this for a few years. moves recording for my class to their respective folders by the prefix on the file name. works great not sure why this kind of functionality is not built in yet.
function MoveRecordingsToFolders(){ var folder = DriveApp.getFolderById('folderid_is_placed_here'); // folder where recordinds are dumpped about 73 long var files = folder.getFiles(); while (files.hasNext()) { file = files.next(); if (file.getName().indexOf("CAD242 #")== 0) { DriveApp.getFolderById('folderid_of_destination').addFile(file); // file .getParents() .next() .removeFile(file); } }}
there are no issues yet just wonder if there will be.