Building new directory and pushing files  in Android
<p>I have code that I know worked in another project of mine to create a new folder if it didn't already exist and place files from my project into it. But in my new project the code does nothing. What am i doing wrong?</p>

<pre><code>File directory = new File(Environment.getExternalStorageDirectory()
                + File.separator + "testing");
            directory.mkdirs();

        File directory2 = new File(Environment.getExternalStorageDirectory()
                + File.separator + "CandooData" + File.separator + "Meds");
        if (!(directory2.isDirectory())) {
            directory2.mkdirs();
        }
        File directory3 = new File(Environment.getExternalStorageDirectory()
                + File.separator + "CandooData" + File.separator + "Meds");
        String[] files;
        if (directory3.isDirectory()) {
            files = directory3.list();
            if (files.length == 0) {
                // directory is empty
                CopyAssets("medsxml", "/Meds");
            }
        }
</code></pre>
