First, Apps Script appears to not allow two files differing only in .gs and .html extensions. The Apps Script UI itself handles this really poorly: if you attempt to create a Foo.html, and you already have a Foo.gs, the request to have Foo.html created will silently fail, with no error messages.
gapps upload also fails if you try to upload both a Foo.js and Foo.html; I'm okay lumping this in with all the other "gapps will fail if you do anything unusual" cases that exist. However, if you attempt to upload only a Foo.html file (no Foo.js), but Foo.gs exists in Drive/server side, the request will fail.
Does gapps upload remove files prior to attempting to add news ones? (Is this even how this operation works? Looking at the docs, it wasn't particularly clear if it was.) If not, this could avoid erroring out despite the state that we want to sync being completely valid.
(Also, is it possible to get gapps upload to output any sort of error message about why it fails?)
First, Apps Script appears to not allow two files differing only in
.gsand .htmlextensions. The Apps Script UI itself handles this really poorly: if you attempt to create aFoo.html, and you already have aFoo.gs, the request to haveFoo.htmlcreated will silently fail, with no error messages.gapps uploadalso fails if you try to upload both aFoo.jsandFoo.html; I'm okay lumping this in with all the other "gappswill fail if you do anything unusual" cases that exist. However, if you attempt to upload only aFoo.htmlfile (noFoo.js), butFoo.gsexists in Drive/server side, the request will fail.Does
gapps uploadremove files prior to attempting to add news ones? (Is this even how this operation works? Looking at the docs, it wasn't particularly clear if it was.) If not, this could avoid erroring out despite the state that we want to sync being completely valid.(Also, is it possible to get
gapps uploadto output any sort of error message about why it fails?)