@Ignore @Test public void test004_uploadFiles() throws IOException { System.out.println("--- --- --- test004_uploadFiles() --- --- ---"); File localFile1 = new File("/Users/yayang/Downloads/test_source1/invoke.timeout.zip"); File localFile2 = new File("/Users/yayang/Downloads/test_source1/japanese_issue.zip"); FileRef fileRef1 = FileRef.newInstance(fs, fs.root(), localFile1.getName()); FileRef fileRef2 = FileRef.newInstance(fs, fs.root(), localFile2.getName()); boolean succeed1 = fs.uploadFileToFsFile(localFile1, fileRef1); boolean succeed2 = fs.uploadFileToFsFile(localFile2, fileRef2); System.out.println( "Local file '" + localFile1.getAbsolutePath() + "' is uploaded to path '" + fileRef1.getPath() + "' (succeed=" + succeed1 + ")? " + fileRef1.exists()); System.out.println( "Local file '" + localFile2.getAbsolutePath() + "' is uploaded to path '" + fileRef2.getPath() + "' (succeed=" + succeed2 + ")? " + fileRef2.exists()); System.out.println(); }