I’m frustrated with one of my Ruby scripts. It’s an image processing
script that converts [sometimes thousands] of images and then HTTPs on
to archival servers. I continue to get a “permission denied” error on
one out of many files. Below is a subset of the PNG portion of my
script, with the error in question. All of the TIFFs, EPSs, and PDFs
were sent successfully. I just don’t understand why some files get this
error. Obviously, it stops the whole script.
success = ProdOrca.sendPNG pngfile
if success == true then
ftpfile = File.new(filesuccess, “w”)
ftpfile = File.new(fileerror, “w”)
FileUtils.rm(pngfile) <----- This is what it’s complaining about.
Exception: Permission denied - EC11SE91-043.png