/** * Method used to get a list of all files and directories in the target path * including the "." and ".." directories. * * @param path The (directory) path to list. * @return A <code>ClientListEntry</code> typed <code>List</code> * @throws URISyntaxException If a malformed <code>URI</code> is created * @throws ClientCommandLsException If the directory listing fails (i.e. * path not a directory or path not found) */ public List<ClientListEntry> ls(String path) throws ClientCommandLsException, URISyntaxException { try { return doList(path, null); } catch (ClientException e) { throw new ClientCommandLsException(e); } }
/** * Method used to get a list of all files and directories in the target path * including the "." and ".." directories. * * @param path The (directory) path to list. * @return A <code>ClientListEntry</code> typed <code>List</code> * @throws URISyntaxException If a malformed <code>URI</code> is created * @throws ClientCommandLsException If the directory listing fails (i.e. * path not a directory or path not found) */ public List<ClientListEntry> ls(String path) throws ClientCommandLsException, URISyntaxException { try { return doList(path, null); } catch (ClientException e) { throw new ClientCommandLsException(e); } }
/** * Method used to get a list of all files and directories in the target path * including the "." and ".." directories. * * @param path The (directory) path to list. * @return A <code>ClientListEntry</code> typed <code>List</code> * @throws URISyntaxException If a malformed <code>URI</code> is created * @throws ClientCommandLsException If the directory listing fails (i.e. * path not a directory or path not found) */ public List<ClientListEntry> ls(String path) throws ClientCommandLsException, URISyntaxException { try { return doList(path, null); } catch (ClientException e) { throw new ClientCommandLsException(e); } }
/** * List entries on the server given a path and a filter for the list * * As of 28/06/2007 - Only used by Test Clients * * @param path * @param filterList * @return List of ClientListEntries * @throws ClientCommandLsException * @throws URISyntaxException */ public List<ClientListEntry> ls(String path, List<ClientPolarisedFilter> filterList) throws ClientCommandLsException, URISyntaxException { try { return doList(path, filterList); } catch (ClientException e) { throw new ClientCommandLsException(e); } }
/** * List entries on the server given a path and a polarised filter * * As of 28/06/2007 - Only used by Test Clients * * @param path * @param filter * @return List of SFTPClientListEntries * @throws ClientCommandLsException * @throws URISyntaxException */ public List<ClientListEntry> ls(String path, ClientPolarisedFilter filter) throws ClientCommandLsException, URISyntaxException { List<ClientPolarisedFilter> filterList = new ArrayList<ClientPolarisedFilter>(1); filterList.add(filter); try { return doList(path, filterList); } catch (ClientException e) { throw new ClientCommandLsException(e); } }
throw new ClientCommandLsException(e); throw new ClientCommandLsException(e);
throw new ClientCommandLsException("Could not get working directory.", e); throw new ClientCommandLsException("Could not get working directory."); throw new ClientCommandLsException(e);
throw new ClientCommandLsException("Could not get working directory.", e); throw new ClientCommandLsException("Could not get working directory."); throw new ClientCommandLsException(e);