public FTPItemList(String hostname, String username, String password, String workingDirectory) throws IOException {
        super(workingDirectory);
        fTPConnector = new FTPConnector(hostname, username, password, workingDirectory);
        this.workingDirectory = workingDirectory;
        for (String item : fTPConnector.getNames()) {
            if (item.endsWith(".jpg") || item.endsWith(".jpeg")) {
                items.add(item);
            }
        }
    }