@Test public void testMakeDirectory() throws Exception { client.makeDirectory("/FOO"); client.makeDirectory("/FOO/BAR"); client.makeDirectory("/FOO/BAR/WOOZ/BAZ"); assertEquals("S_IFDIR", client.getFileInfo("/FOO/BAR/WOOZ/BAZ").get(AfcClient.FILE_INFO_KEY_ST_IFMT)); try { client.removePath("/FOO"); fail("LibIMobileDeviceException expected"); } catch (LibIMobileDeviceException e) { assertEquals(AfcError.AFC_E_DIR_NOT_EMPTY.swigValue(), e.getErrorCode()); } client.removePath("/FOO", true); try { client.getFileInfo("/FOO"); fail("LibIMobileDeviceException expected"); } catch (LibIMobileDeviceException e) { assertEquals(AfcError.AFC_E_OBJECT_NOT_FOUND.swigValue(), e.getErrorCode()); } }
public void makeDirectory(String dir) { checkResult(LibIMobileDevice.afc_make_directory(getRef(), dir)); }
AfcClient implements AutoCloseable { public void makeDirectory(String dir) { checkResult(LibIMobileDevice.afc_make_directory(getRef(), dir)); } }
AfcClient implements AutoCloseable { public void makeDirectory(String dir) { checkResult(LibIMobileDevice.afc_make_directory(getRef(), dir)); } AfcClient(AfcClientRef ref);  AfcClient(IDevice device, LockdowndServiceDescriptor service); }
AfcClient implements AutoCloseable { public void makeDirectory(String dir) { checkResult(LibIMobileDevice.afc_make_directory(getRef(), dir)); } 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 makeDirectory(String dir) { checkResult(LibIMobileDevice.afc_make_directory(getRef(), dir)); } 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; }