MCPcopy Create free account
hub / github.com/danthareja/node-google-apps-script / fileIdIsValid

Function fileIdIsValid

lib/commands/init.js:56–66  ·  view source on GitHub ↗
(fileId)

Source from the content-addressed store, hash-verified

54}
55
56function fileIdIsValid(fileId) {
57 if(fileId.charAt(0).toLowerCase() === 'm') {
58 console.log('\nScript file ID error.'.red + '\n' +
59 'It looks like you are passing in a Project Key, from "File --> Project properties",' +
60 'rather than a Drive File ID.\nYou will find the Drive File ID in the script\'s URL:\n' +
61 'https://script.google.com/a/google.com/d/' + '__DRIVE_FILE_ID__'.green + '/edit.\n');
62 return false;
63 } else {
64 return true;
65 }
66}

Callers 1

init.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected