Android Folder Create getFolderInTarget(String folderName)

Here you can find the source of getFolderInTarget(String folderName)

Description

get Folder In Target

Declaration

public static File getFolderInTarget(String folderName) 

Method Source Code

//package com.java2s;
import java.io.File;

public class Main {
    public static File getFolderInTarget(String folderName) {
        File folder = new File(new File("").getAbsoluteFile(), "target"
                + File.separator + folderName);
        if (!folder.exists()) {
            folder.mkdirs();/*from   w w  w.  j a  v  a2s .  com*/
        }

        return folder;
    }
}

Related

  1. createPath(String folderName, String fileName)
  2. forceFolderExist(String folder)
  3. makeParent(File file)
  4. makeParent(String file)