matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
249 stars 79 forks source link

Java method to move file to megafuse mapped folder #29

Closed seliver closed 9 years ago

seliver commented 9 years ago

Hi. I'm working on a little project to move files from one directory to the mega mapped folder. I tried using File renameTo and Runtime.getRuntime().exec("mv...") but neither of those work. Can this be related to megafuse? Is there a possibility java not being able to move files there?

matteoserva commented 9 years ago

1) are you able to move local files to another local directory? 2) can you move a remote file to a local directory? 3) what happens if you first copy then remove the original file?

seliver commented 9 years ago

Just picked Files.move(...) and it makes the job.Thanks!