Stupid question I know, but after lots of Googling, I turn to you. So far I have added these libraries,
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.Files;
But every time I try something like, File f = new File(LookIn); (LookIn is a string) I get an error,
[javac] /compiler/android/src/DaAqv/com/aicode/filesandfolders/FilesAndFolders.java:59: error: cannot find symbol
[javac] File f = new File(LookIn);
[javac] ^
Here’s the code if it helps,
@SimpleFunction(description = “Return the list of files in the specified directory”)
public List ListOfFiles(String LookIn){
File f = new File(LookIn);
String files = f.list;
return Arrays.asList(files);
}
Thanks.