@Test public void testMkdir() throws Exception { FinderLocal l = new FinderLocal(System.getProperty("java.io.tmpdir"), UUID.randomUUID().toString()); new DefaultLocalDirectoryFeature().mkdir(l); assertTrue(l.exists()); new DefaultLocalDirectoryFeature().mkdir(l); assertTrue(l.exists()); l.delete(); }
@Override public boolean exists(final LinkOption... options) { NSURL resolved = null; try { resolved = this.lock(false); if(null == resolved) { return super.exists(options); } return Files.exists(Paths.get(resolved.path())); } catch(AccessDeniedException e) { return super.exists(options); } finally { this.release(resolved); } }
FinderLocal extends Local { @Override public boolean exists(final LinkOption... options) { NSURL resolved = null; try { resolved = this.lock(false); if(null == resolved) { return super.exists(options); } return Files.exists(Paths.get(resolved.path())); } catch(AccessDeniedException e) { return super.exists(options); } finally { this.release(resolved); } } }
FinderLocal extends Local { @Override public boolean exists(final LinkOption... options) { NSURL resolved = null; try { resolved = this.lock(false); if(null == resolved) { return super.exists(options); } return Files.exists(Paths.get(resolved.path())); } catch(AccessDeniedException e) { return super.exists(options); } finally { this.release(resolved); } } FinderLocal(final Local parent, final String name);  FinderLocal(final Local parent, final String name, final FilesystemBookmarkResolver<NSURL> resolver);  FinderLocal(final String parent, final String name);  FinderLocal(final String parent, final String name, final FilesystemBookmarkResolver<NSURL> resolver);  FinderLocal(final String path);  FinderLocal(final String name, final FilesystemBookmarkResolver<NSURL> resolver); }
FinderLocal extends Local { @Override public boolean exists(final LinkOption... options) { NSURL resolved = null; try { resolved = this.lock(false); if(null == resolved) { return super.exists(options); } return Files.exists(Paths.get(resolved.path())); } catch(AccessDeniedException e) { return super.exists(options); } finally { this.release(resolved); } } FinderLocal(final Local parent, final String name);  FinderLocal(final Local parent, final String name, final FilesystemBookmarkResolver<NSURL> resolver);  FinderLocal(final String parent, final String name);  FinderLocal(final String parent, final String name, final FilesystemBookmarkResolver<NSURL> resolver);  FinderLocal(final String path);  FinderLocal(final String name, final FilesystemBookmarkResolver<NSURL> resolver); @Override T serialize(final Serializer dict); @Override String getDisplayName(); @Override String getAbbreviatedPath(); @Override Local getVolume(); @Override boolean exists(final LinkOption... options); @Override String getBookmark(); @Override void setBookmark(final String data); @Override AttributedList<Local> list(final Filter<String> filter); @Override OutputStream getOutputStream(boolean append); @Override NSURL lock(final boolean interactive); @Override void release(final Object lock); @Override InputStream getInputStream(); @Override FinderLocalAttributes attributes(); }
FinderLocal extends Local { @Override public boolean exists(final LinkOption... options) { NSURL resolved = null; try { resolved = this.lock(false); if(null == resolved) { return super.exists(options); } return Files.exists(Paths.get(resolved.path())); } catch(AccessDeniedException e) { return super.exists(options); } finally { this.release(resolved); } } FinderLocal(final Local parent, final String name);  FinderLocal(final Local parent, final String name, final FilesystemBookmarkResolver<NSURL> resolver);  FinderLocal(final String parent, final String name);  FinderLocal(final String parent, final String name, final FilesystemBookmarkResolver<NSURL> resolver);  FinderLocal(final String path);  FinderLocal(final String name, final FilesystemBookmarkResolver<NSURL> resolver); @Override T serialize(final Serializer dict); @Override String getDisplayName(); @Override String getAbbreviatedPath(); @Override Local getVolume(); @Override boolean exists(final LinkOption... options); @Override String getBookmark(); @Override void setBookmark(final String data); @Override AttributedList<Local> list(final Filter<String> filter); @Override OutputStream getOutputStream(boolean append); @Override NSURL lock(final boolean interactive); @Override void release(final Object lock); @Override InputStream getInputStream(); @Override FinderLocalAttributes attributes();  }