dcsimg
How do I move a file, or delete after the file is copied?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kris_Anderson
Posted On:   Thursday, March 21, 2002 08:13 AM

I am trying to update a tool that copies images to a certain location. I would like the file to be deleted after this. Or I would like this file to move instead of copy

Re: How do I move a file, or delete after the file is copied?

Posted By:   Stephen_Ostermiller  
Posted On:   Thursday, March 21, 2002 12:48 PM

File.rename() can move a file but may fail (will return false)


File.delete() will do the trick after you copy.

About | Sitemap | Contact