@Test public void testGetAttrSubDir() throws Exception { StatFiller stat = mock(StatFiller.class); Path foo = mockPath("/foo"); int result = fs.getattr("/foo", stat); assertThat(result).isEqualTo(SUCCESS); verify(stat).stat(foo); }
@Override public int getattr(String path, StatFiller stat) { logger.debug(path); return tryCatchRunnable.apply(() -> stat.stat(real(path))); }
MirrorFs implements se.tfiskgul.mux2fs.fs.base.FileSystem { @Override public int getattr(String path, StatFiller stat) { logger.debug(path); return tryCatchRunnable.apply(() -> stat.stat(real(path))); } }
MirrorFs implements se.tfiskgul.mux2fs.fs.base.FileSystem { @Override public int getattr(String path, StatFiller stat) { logger.debug(path); return tryCatchRunnable.apply(() -> stat.stat(real(path))); } MirrorFs(Path mirroredPath); @VisibleForTesting protected  MirrorFs(Path mirroredPath, FileChannelCloser fileChannelCloser); }
MirrorFs implements se.tfiskgul.mux2fs.fs.base.FileSystem { @Override public int getattr(String path, StatFiller stat) { logger.debug(path); return tryCatchRunnable.apply(() -> stat.stat(real(path))); } MirrorFs(Path mirroredPath); @VisibleForTesting protected  MirrorFs(Path mirroredPath, FileChannelCloser fileChannelCloser); @Override String getFSName(); @Override int getattr(String path, StatFiller stat); @Override int readdir(String path, DirectoryFiller filler); @Override int readLink(String path, Consumer<String> buf, int size); @Override int open(String path, FileHandleFiller filler); @Override int read(String path, Consumer<byte[]> buf, int size, long offset, int fileHandle); @Override int release(String path, int fileHandle); @Override void destroy(); }
MirrorFs implements se.tfiskgul.mux2fs.fs.base.FileSystem { @Override public int getattr(String path, StatFiller stat) { logger.debug(path); return tryCatchRunnable.apply(() -> stat.stat(real(path))); } MirrorFs(Path mirroredPath); @VisibleForTesting protected  MirrorFs(Path mirroredPath, FileChannelCloser fileChannelCloser); @Override String getFSName(); @Override int getattr(String path, StatFiller stat); @Override int readdir(String path, DirectoryFiller filler); @Override int readLink(String path, Consumer<String> buf, int size); @Override int open(String path, FileHandleFiller filler); @Override int read(String path, Consumer<byte[]> buf, int size, long offset, int fileHandle); @Override int release(String path, int fileHandle); @Override void destroy();  }