Thanks everyone. I wanted to restrict activity to a certain branch on the disk.. but it seems that chrooting wouldn't be a good answer for my project. In this example, I could use FileUtils.mv source, dest if I wanted to.. but in my project I require external utilities.