P
Peter Bailey
Hi,
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.
Thanks,
Peter
...
success = ProdOrca.sendPNG pngfile
if success == true then
ftpfile = File.new(filesuccess, "w")
ftp.putbinaryfile(filesuccess)
ftpfile.close
File.open("E:/logs/StatusReports/InfoConFiles.log", ...
else
ftpfile = File.new(fileerror, "w")
ftp.putbinaryfile(fileerror)
ftpfile.close
File.open("E:/logs/StatusReports/InfoConFiles.log", ...
end
FileUtils.rm(pngfile) <----- This is what it's complaining about.
...
Exception: Permission denied - EC11SE91-043.png
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.
Thanks,
Peter
...
success = ProdOrca.sendPNG pngfile
if success == true then
ftpfile = File.new(filesuccess, "w")
ftp.putbinaryfile(filesuccess)
ftpfile.close
File.open("E:/logs/StatusReports/InfoConFiles.log", ...
else
ftpfile = File.new(fileerror, "w")
ftp.putbinaryfile(fileerror)
ftpfile.close
File.open("E:/logs/StatusReports/InfoConFiles.log", ...
end
FileUtils.rm(pngfile) <----- This is what it's complaining about.
...
Exception: Permission denied - EC11SE91-043.png