We have an html asset created on the online editor that is named like file-html
, these files are not synchronized by default with pcsync, to synchronize all the files that I want I’m doing this:
pcsync pushAll -r '^(folderA|folderB|folderC).*(-|\.)(css|js|html)$'
This works fine to pull from PlayCanvas or get differennt files, but when a local file with the name something-html
is modified locally and I want to push it, the following error happens.
Output: (partial)
/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request-promise-core/lib/errors.js:32
Error.captureStackTrace(this);
^
<ref *12> StatusCodeError: 400 - "{\"error\":\"File extension change not allowed\"}"
at new StatusCodeError (/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request-promise-core/lib/errors.js:32:15)
at plumbing.callback (/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request-promise-core/lib/plumbing.js:46:31)
at self.callback (/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request/request.js:185:22)
at Request.emit (node:events:518:28)
at Request.<anonymous> (/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request/request.js:1154:10)
at Request.emit (node:events:518:28)
at IncomingMessage.<anonymous> (/home/ludovitkramar/Documents/playcanvas-sync/node_modules/request/request.js:1076:12)
at Object.onceWrapper (node:events:632:28)
at IncomingMessage.emit (node:events:530:35) {
statusCode: 400,
error: '{"error":"File extension change not allowed"}',