Problem with moving a file to another folder
<p>I am using:</p>

<pre><code>// File (or directory) to be moved
    File file = new File(output.toString());



    // Destination directory
    File dir = new File(directory_name);

    // Move file to new directory
    boolean success = file.renameTo(new File(dir, new_file.getName()));
    if (!success) {
        // File was not successfully moved
    }
</code></pre>

<p>In this case file is main.vm, and folder is seven
the program shows that it works(the file exists and all) but the file is not moving to the seven directory.
Any ideas why?</p>

<p>Is it ok that the file name is main.vm or do i need to enter full path? the same for the folder.
Thanks </p>
