Ejemplo n.º 1
0
 public void init() throws IOException {
   Inode root = vfs.getRootInode();
   exportFile
       .getExports()
       .map(FsExport::getPath)
       .forEach(
           path -> {
             Splitter splitter = Splitter.on('/').omitEmptyStrings();
             Inode inode = root;
             for (String s : splitter.split(path)) {
               try {
                 inode = tryToCreateIfMissing(vfs, inode, s);
               } catch (IOException e) {
                 return;
               }
             }
           });
 }