I am working on this node function.
#copyInCommonFile(tmpDir, commonfile) {
var newfile = path.join(tmpDir, commonfile.fileName);
try {
fs.copyFileSync(commonfile.commonFilePath, newfile);
this.logger.info('Copied file from : ' + commonfile.commonFilePath + ' to ' + newfile);
} catch (err) {
throw err
}
}
My problem is that no matter what I do, this method hangs with no error. I’ve tried the sync and async methods. This is supposed to copy a file from one directory inside the docker container to another directory. The app just sits there and hangs on the method until it is killed.
The result is that it does create an empty file in the new location.
I have been at this all morning, im out of ideas. do you fine folks have any?