FTPFSEntry e = f.isDirectory() ? new FTPFSDirectory(fileSystem, f) : new FTPFSFile(fileSystem, f);
FTPFSEntry e = f.isDir() ? new FTPFSDirectory(fileSystem, f) : new FTPFSFile(fileSystem, f);
    private void ensureEntries() throws IOException {        try {            if (entries == null) {                entries = new HashMap<String, FTPFSEntry>();                FTPFile[] ftpFiles = null;                synchronized(fileSystem){                    ftpFiles = fileSystem.listFiles(path());                }                for (FTPFile f : ftpFiles) {                    FTPFSEntry e = f.isDirectory() ? new FTPFSDirectory(fileSystem, f) : new FTPFSFile(fileSystem, f);                    e.setParent(this);                    entries.put(f.getName(), e);                }            }        } catch (Exception e) {            e.printStackTrace();            throw new IOException("Read error");        }    }