List of usage examples for java.io File path
String path
To view the source code for java.io File path.
Click Source Link
From source file:com.ettrema.zsync.Scratch.java
@Test public void test_Everything() throws FileNotFoundException, Exception { Resource r = host.find(remoteName); if (r == null) { System.out.println("Existing file not found"); } else {//from w w w.j ava 2 s . c om System.out.println("Found existing file, deleting"); r.delete(); } System.out.println("Upload original file"); com.ettrema.httpclient.File newFile = host.uploadFile(remoteName, fOrig, pl); System.out.println("Uploaded bytes: " + pl.uploadedBytes); System.out.println("Created: " + newFile.href()); System.out.println("Now update file, should only be small ----------------------------"); newFile = host.uploadFile(remoteName, fUpdated, pl); assertEquals("/" + remoteName, newFile.path().toString()); System.out.println("Uploaded bytes: " + pl.uploadedBytes); System.out.println("Doing incremental download"); newFile.downloadToFile(fTemp, pl); System.out.println("downloaded bytes: " + pl.uploadedBytes); }