public static boolean deleteLocalPath(String path)
    {
        if (path == null || path.equals(""))
        {
            return false;
        }
        java.io.File f = new java.io.File(path);
        if (!f.exists())
        {
            System.out.println("Local directory is not exist:" + path);
            return true;
        }
        String[] tmp = f.list();
        for (int i = 0; tmp != null && i < tmp.length; i++)
        {
            deleteLocalPath(path + "/" + tmp[i]);
        }
        if (f.delete())
        {
            System.out.println("delete Local directory success:" + path);
            return true;
        }
        else
        {
            System.out.println("delete Local directory fail:" + path);
            return false;
        }
    }