Re: Problem with java Rename function in solaris platform.
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2006 07:03:21 GMT
On 9 Mar 2006 22:09:44 -0800, drajibneed@xxxxxxxxx wrote, quoted or
indirectly quoted someone who said :
the operation was quite successfull,but in case of moving the
files(using rename() function) from local to external disk,operation
Rename is just that. It goes into the directory and changes the name
of the file leaving the data part alone. This gives the illusion of
moving the file to a different spot on the same drive. It is not
intended for moving files from drive to drive. A move is a copy
followed by delete.
There are several ways to move files.
1. use http://mindprod.com/products.html#FILETRANSFER to copy files
then use File.delete.
2. exec a platform specific script that does it. see
http://mindprod.com/jgloss/jgloss/exec.html.
3. use FileInputStreams to such files into ram and squirt them out
with FileOutputStreams. Works if files not that big.
http://mindprod.com/applets/fileio.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- Follow-Ups:
- References:
- Problem with java Rename function in solaris platform.
- From: drajibneed
- Problem with java Rename function in solaris platform.
- Prev by Date: Re: Passing parameter from Midlet to Servlet
- Next by Date: Re: Socket problem
- Previous by thread: Problem with java Rename function in solaris platform.
- Next by thread: Re: Problem with java Rename function in solaris platform.
- Index(es):
Relevant Pages
|