// Noro - v primeru direktorija moramo narediti nov context !!!
if(fi.getFileType() == FileInfo.TYPE_DIR) {
try {
fsroot.lookup(fi.getFileName().toString());
throw new VFSException("Directory exists already: " + fi.getFileName());
} catch(NameNotFoundException ex) {
}
Context nuctx = fsroot.createSubcontext(fi.getFileName().toString());
nuctx.bind(INTERNAL_FILE, fileInfoToFNode(fi));
} else {
fsroot.bind(fi.getFileName().toString(), fileInfoToFNode(fi));
}
} catch(NamingException ex) {
throw new VFSException("Could not create file: " + fi.getFileName(), ex);
}
}