@Test public void testUpload() throws Exception { Path dir = Files.createTempDirectory(AfcClientTest.class.getSimpleName()); try { Path foo = Files.createDirectory(dir.resolve("foo")); Path bar = Files.createDirectory(foo.resolve("bar")); Path wooz = Files.createFile(bar.resolve("wooz")); Files.createSymbolicLink(foo.resolve("rooz"), foo.relativize(wooz)); try { client.upload(foo.toFile(), "/baz"); StringWriter sw = new StringWriter(); list("/baz", "baz", "", new PrintWriter(sw)); assertEquals( "baz/\n" + " foo/\n" + " bar/\n" + " wooz 0 (S_IFREG)\n" + " rooz -> bar/wooz\n", sw.toString()); } finally { client.removePath("/baz", true); } } finally { FileUtils.deleteDirectory(dir.toFile()); } }
public void upload(File localFile, final String targetPath) throws IOException { upload(localFile, targetPath, null); }
AfcClient implements AutoCloseable { public void upload(File localFile, final String targetPath) throws IOException { upload(localFile, targetPath, null); } }
AfcClient implements AutoCloseable { public void upload(File localFile, final String targetPath) throws IOException { upload(localFile, targetPath, null); } AfcClient(AfcClientRef ref);  AfcClient(IDevice device, LockdowndServiceDescriptor service); }
AfcClient implements AutoCloseable { public void upload(File localFile, final String targetPath) throws IOException { upload(localFile, targetPath, null); } AfcClient(AfcClientRef ref);  AfcClient(IDevice device, LockdowndServiceDescriptor service); String[] readDirectory(String dir); Map<String, String> getDeviceInfo(); int getBlockSize(); long getFreeBytes(); long getTotalBytes(); String getModel(); Map<String, String> getFileInfo(String path); long fileOpen(String path, AfcFileMode mode); void fileClose(long handle); int fileRead(long handle, byte[] buffer, int offset, int count); int fileWrite(long handle, byte[] buffer, int offset, int count); void fileCopy(File localFile, String remoteFile); void removePath(String path); void removePath(String path, boolean recurse); void renamePath(String from, String to); void makeDirectory(String dir); void makeLink(AfcLinkType type, String target, String source); void upload(File localFile, final String targetPath); void upload(File localFile, final String targetPath, 
            final UploadProgressCallback callback); synchronized void dispose(); @Override void close(); static void main(String[] args); }
AfcClient implements AutoCloseable { public void upload(File localFile, final String targetPath) throws IOException { upload(localFile, targetPath, null); } AfcClient(AfcClientRef ref);  AfcClient(IDevice device, LockdowndServiceDescriptor service); String[] readDirectory(String dir); Map<String, String> getDeviceInfo(); int getBlockSize(); long getFreeBytes(); long getTotalBytes(); String getModel(); Map<String, String> getFileInfo(String path); long fileOpen(String path, AfcFileMode mode); void fileClose(long handle); int fileRead(long handle, byte[] buffer, int offset, int count); int fileWrite(long handle, byte[] buffer, int offset, int count); void fileCopy(File localFile, String remoteFile); void removePath(String path); void removePath(String path, boolean recurse); void renamePath(String from, String to); void makeDirectory(String dir); void makeLink(AfcLinkType type, String target, String source); void upload(File localFile, final String targetPath); void upload(File localFile, final String targetPath, 
            final UploadProgressCallback callback); synchronized void dispose(); @Override void close(); static void main(String[] args); static final String SERVICE_NAME; static final String DEVICE_INFO_KEY_FS_TOTAL_BYTES; static final String DEVICE_INFO_KEY_FS_FREE_BYTES; static final String DEVICE_INFO_KEY_FS_BLOCK_SIZE; static final String DEVICE_INFO_KEY_MODEL; static final String FILE_INFO_KEY_ST_BIRTHTIME; static final String FILE_INFO_KEY_ST_MTIME; static final String FILE_INFO_KEY_ST_BLOCKS; static final String FILE_INFO_KEY_ST_NLINK; static final String FILE_INFO_KEY_ST_SIZE; static final String FILE_INFO_KEY_ST_IFMT; static final String FILE_INFO_KEY_LINK_TARGET; }