filecopy deletes file from my repo
part of the module.xml:
<FileCopy Name="dist/" Target="${cspdir}loan/"/>
<WebApplication
Name="/loan"
NameSpace="{$namespace}"
Path="${cspdir}loan"
Recurse="1"
ServeFiles="1"
CookiePath="${cspdir}loan"
UseCookies="2"
/>
this produces the following for load command with -v: Loading demo-loan-frontend in process 675 [USER|demo-loan-frontend] Reload START (/home/irisowner/dev/) Skipping preload - directory does not exist. [USER|demo-loan-frontend] Reload SUCCESS [demo-loan-frontend] Module object refreshed. [USER|demo-loan-frontend] Validate START [USER|demo-loan-frontend] Validate SUCCESS [USER|demo-loan-frontend] Compile START [USER|demo-loan-frontend] Compile SUCCESS [USER|demo-loan-frontend] Activate START Copying /home/irisowner/dev/dist/ to /usr/irissys/csp/loan/ as directory [demo-loan-frontend] Activate FAILURE ERROR! Error copying directory /home/irisowner/dev/dist/ to /usr/irissys/csp/loan/
ERROR #5024: Unable to copy file '/home/irisowner/dev/dist/favicon.ico' to '/usr/irissys/csp/loan/favicon.ico' USER>
and... it deletes favicon.ico from my disk.
If run again - deletes another file it couldn't copy
@evshvarov I'm trying to reproduce this issue and I'd like a little more information. What version of IPM are you using and is this on Windows or Unix/Linux? Also, when you say it deletes favicon.ico, do you mean it deletes it from the source directory?
(Generally I'd expect this kind of failure to be file/directory permissions related, but it definitely shouldn't be deleting files from the source directory)
yes. this was with 10.3 ipm on Ubuntu (docker)
it deletes, yes.