/** * List the contents of a directory. * * @param dirName See the {@link SFTPv3Client comment} for the class for more details. * @return A Vector containing {@link SFTPv3DirectoryEntry} objects. * @throws IOException */ public List<SFTPv3DirectoryEntry> ls(String dirName) throws IOException { SFTPv3FileHandle handle = openDirectory(dirName); List<SFTPv3DirectoryEntry> result = scanDirectory(handle.fileHandle); closeFile(handle); return result; }
/** * List the contents of a directory. * * @param dirName See the {@link SFTPv3Client comment} for the class for more details. * @return A Vector containing {@link SFTPv3DirectoryEntry} objects. * @throws IOException */ public List<SFTPv3DirectoryEntry> ls(String dirName) throws IOException { SFTPv3FileHandle handle = openDirectory(dirName); List<SFTPv3DirectoryEntry> result = scanDirectory(handle.fileHandle); closeFile(handle); return result; }
/** * List the contents of a directory. * * @param dirName See the {@link SFTPv3Client comment} for the class for more details. * @return A Vector containing {@link SFTPv3DirectoryEntry} objects. * @throws IOException */ public List<SFTPv3DirectoryEntry> ls(String dirName) throws IOException { SFTPv3FileHandle handle = openDirectory(dirName); List<SFTPv3DirectoryEntry> result = scanDirectory(handle.fileHandle); closeFile(handle); return result; }
/** * List the contents of a directory. * * @param dirName See the {@link SFTPv3Client comment} for the class for more details. * @return A Vector containing {@link SFTPv3DirectoryEntry} objects. * @throws IOException */ public Vector ls(String dirName) throws IOException { byte[] handle = openDirectory(dirName); Vector result = scanDirectory(handle); closeHandle(handle); return result; }