public static synchronized void pushDirectoryForUpload(File directory, boolean bypassFOD) {
        if (directory != null && directory.isDirectory() && directory.listFiles() != null) {
            for (File child : directory.listFiles()) {
                if (child.isFile())
                    pushFileForUpload(child, bypassFOD);
                if (child.isDirectory())
                    pushDirectoryForUpload(child, bypassFOD);
            }
        }
    }