From: Jari Williamsson Date: 2007-11-21T18:01:30+09:00 Subject: Re: Libs for high-level file processing? Casimir P wrote: > savesubpath = path.split("/").last > saveresized = savetargetstr.to_s + "/" + path.split("/").last + "/" + > (m+1).to_s + "fullsize" + imageFormat > #and then write and FAIL.. > #Double slash kills.. > #Or directory doesnt exist! I think the lines above are more easily handled if you use the methods in the core File library, such as File.basename etc. Much to choose from there. Best regards, Jari Williamsson