I am trying to read files in DropBox folders on my Mac with java.
The following code:
String dir
= "/Users/brucewilcox/Library/CloudStorage/Dropbox/Apps/Form8949DotCom/taxdochub-forms-pdf/XXXX";
File directory = new File( dir );
boolean canRead = directory.canRead( );
String message = String.format( "canRead is: %s", canRead );
System.out.println( message );
emits
canRead is: false
The directory object exists, is a directory, and display an absolute path.
What is the root cause of this?
How can I fix?
Thank you.