#Trouble creating objects from a file directory

1 messages · Page 1 of 1 (latest)

storm fulcrum
#

Im having trouble creating objects from a fiel in the directory because i can set it up because the method aaccepts string but not files

median ravenBOT
#

<@&987246399047479336> please have a look, thanks.

median ravenBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

storm fulcrum
#
public void setUpOrganizations(String caseFolder) throws FileNotFoundException {
        File f = new File(caseFolder + "/CriminalOrganizations");
        File[] paths =  f.listFiles();
        
        for (int i = 0; i < paths.length; i++){
            if (paths[i].isFile()){ //this line weeds out other directories/folders
                setUpOrganizations(paths[i]);
            }
        }

    }



median ravenBOT
storm fulcrum
#

the error is in the setting up the organizations

#

btw its not calling itself

#

its calling another method