@Test public void testFindRoot() throws Exception { assertTrue(new S3FindFeature(new S3Session(new Host(new S3Protocol()))).find(new Path("/", EnumSet.of(Path.Type.directory)))); }
@Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { if(file.isFile() || file.isPlaceholder()) { attributes.find(file); return true; } else { try { new S3ObjectListService(session).list(file, new DisabledListProgressListener(), containerService.getKey(file)); return true; } catch(NotfoundException e) { throw e; } } } catch(NotfoundException e) { return false; } catch(AccessDeniedException e) { return true; } }
S3FindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { if(file.isFile() || file.isPlaceholder()) { attributes.find(file); return true; } else { try { new S3ObjectListService(session).list(file, new DisabledListProgressListener(), containerService.getKey(file)); return true; } catch(NotfoundException e) { throw e; } } } catch(NotfoundException e) { return false; } catch(AccessDeniedException e) { return true; } } }
S3FindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { if(file.isFile() || file.isPlaceholder()) { attributes.find(file); return true; } else { try { new S3ObjectListService(session).list(file, new DisabledListProgressListener(), containerService.getKey(file)); return true; } catch(NotfoundException e) { throw e; } } } catch(NotfoundException e) { return false; } catch(AccessDeniedException e) { return true; } } S3FindFeature(final S3Session session); }
S3FindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { if(file.isFile() || file.isPlaceholder()) { attributes.find(file); return true; } else { try { new S3ObjectListService(session).list(file, new DisabledListProgressListener(), containerService.getKey(file)); return true; } catch(NotfoundException e) { throw e; } } } catch(NotfoundException e) { return false; } catch(AccessDeniedException e) { return true; } } S3FindFeature(final S3Session session); @Override boolean find(final Path file); @Override Find withCache(final Cache<Path> cache); }
S3FindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { if(file.isRoot()) { return true; } try { if(file.isFile() || file.isPlaceholder()) { attributes.find(file); return true; } else { try { new S3ObjectListService(session).list(file, new DisabledListProgressListener(), containerService.getKey(file)); return true; } catch(NotfoundException e) { throw e; } } } catch(NotfoundException e) { return false; } catch(AccessDeniedException e) { return true; } } S3FindFeature(final S3Session session); @Override boolean find(final Path file); @Override Find withCache(final Cache<Path> cache);  }