@Override
    public void createFile(String parent, String newfile, FileBase thedata)
    {
        if (!dirEntries.containsKey(parent.toLowerCase())) return;
        if (fileEntries.containsKey((parent + "/" + newfile).toLowerCase())) return;
        if (dirEntries.containsKey((parent + "/" + newfile).toLowerCase())) return;
        DirEntry parentdir = dirEntries.get(parent.toLowerCase());
        
        FileEntry fe = new FileEntry();
        try { fe.data = thedata.getContents(); }
        catch (IOException ex) { return; }
        
        fe.dataSize = fe.data.length;
        fe.fullName = parent + "/" + newfile;
        fe.name = newfile;
        fe.parentDir = parentdir;
        
        parentdir.childrenFiles.add(fe);
        fileEntries.put(fe.fullName.toLowerCase(), fe);
    }