Pcsync: File extension change not allowed

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"}',

Our local expert @yak32 on this is on leave for another 10 or so days, so we might not have a chance to look at this at the moment, unless @Mark_Lundin has some ideas?

1 Like

Btw this is my .pcconfig on the home directory:

{
  "PLAYCANVAS_BRANCH_ID": "REDACTED",
  "PLAYCANVAS_PROJECT_ID": REDACTED,
  "PLAYCANVAS_TARGET_DIR": "/project/dir/",
  "PLAYCANVAS_API_KEY": "REDACTED",
  "PLAYCANVAS_BAD_FILE_REG": "^\\.|~$",
  "PLAYCANVAS_BAD_FOLDER_REG": "\\.",

  "PLAYCANVAS_VERBOSE": 0
}

And this is my pcignore.txt

folderA/*
folderB/*
folderC/*