UPDATE: I have managed to step through FileUtil.inc to this line and this is where it hangs. It is supposed to have 3-tries and then fail, but it goes wandering off when I step into line #600 in my copy of FileUtil.inc. It never returns to increment the retry count.
SrcHandle := LazFileUtils.FileOpenUTF8(SrcFilename, fmOpenRead or fmShareDenyWrite);
Hi, I need to copy some files as a backup and I am hitting a wall with CopyFile, Laz 1.8.4 and Ubuntu 16.04. This backup is just for my own use, so I tried changing file permissions in the offending folder but still it hits the wall.
CopyGood:=CopyFile(Filefrom,FileTo,[cffOverwriteFile,cffCreateDestDirectory,cffPreserveTime]);
The backup is working well until it hits the Veracrypt folder that **appears** to have a file in use or locked. I say "appears," as I am not sure of the cause of the problem, but it just stops before a file.
.config/VeraCrypt/Configuration.xml
.config/VeraCrypt/Favorite Volumes.xml
// I think the following file is the problem
.config/VeraCrypt/.show-request-queue
If I shut down Veracrypt, the ".config/VeraCrypt/.show-request-queue" is no longer there and the backup works fine. But then I have nowhere safe to store the backups so I need Veracrypt running.
I tried using a "try-except" but it still hangs there. How can I get it ignore this and carry on?
Thanks