public static void FileFinder(String myDirectoryPath) {


        File directory = new File(myDirectoryPath);  //file object that is used to find an individual directory path
        File[] directoryListings = directory.listFiles(); //list of file objects in a particular folder

        if(directoryListings!=null){
            //for all file/folder items in list directoryListings
            for (File child : directoryListings){

                //if the child object is a file then return its size, otherwise assume it is a folder and call FileFolder recursively
                if(child.isFile()){
                    String fileName = child.getAbsolutePath();
                    double fileSize = child.length();
                    //checks if the size of the folder being checked in the folder is greater than the first item in the BiggestFiles array
                    if (fileArray.checkGreaterThanStandard(fileSize, fileArray.getSecond(0))== true){
                        fileArray.addFileToArray(fileName, fileSize);
                        fileArray.sortArray();
                    }
                }
                else {
                    //recursive call if the path is not null
                    if(child.getAbsolutePath()!=null){
                        FileFinder(child.getAbsolutePath());
                    }
                }
            }
        }


    }