Hi ,
While looking at this thread http://bytes.com/forum/showthread.php?threadid=851452 , just got to know about the new method "renameTo()". Was wondering for having missed this and wanted to check that out. [Thanks to the admin r035198x!]
The API says that ,
I am very sure that there is NO file with the passed destination file name. But the return value is always false and it shows the operation failed.
Any idea/clue? I am using it in Windows OS.
Thanks,
Raghavan alias Saravanan M.
While looking at this thread http://bytes.com/forum/showthread.php?threadid=851452 , just got to know about the new method "renameTo()". Was wondering for having missed this and wanted to check that out. [Thanks to the admin r035198x!]
The API says that ,
Many aspects of the behavior of this method are inherently platform-dependent: The rename operation might not be able to move a file from one filesystem to another, it might not be atomic, and it might not succeed if a file with the destination abstract pathname already exists.
Any idea/clue? I am using it in Windows OS.
Thanks,
Raghavan alias Saravanan M.
Comment