File tree Expand file tree Collapse file tree
examples/authorize/src/main/java/com/dropbox/core/examples/authorize Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import com .dropbox .core .json .JsonReader ;
1010
1111import java .io .BufferedReader ;
12+ import java .io .File ;
1213import java .io .InputStreamReader ;
1314import java .io .IOException ;
1415import java .util .logging .Level ;
@@ -90,9 +91,10 @@ public static void main(String[] args) throws IOException {
9091
9192 // Save auth information to output file.
9293 DbxAuthInfo authInfo = new DbxAuthInfo (authFinish .getAccessToken (), appInfo .getHost ());
94+ File output = new File (argAuthFileOutput );
9395 try {
94- DbxAuthInfo .Writer .writeToFile (authInfo , argAuthFileOutput );
95- System .out .println ("Saved authorization information to \" " + argAuthFileOutput + "\" ." );
96+ DbxAuthInfo .Writer .writeToFile (authInfo , output );
97+ System .out .println ("Saved authorization information to \" " + output . getCanonicalPath () + "\" ." );
9698 } catch (IOException ex ) {
9799 System .err .println ("Error saving to <auth-file-out>: " + ex .getMessage ());
98100 System .err .println ("Dumping to stderr instead:" );
You can’t perform that action at this time.
0 commit comments