private final boolean filter ( FileEntry fe ) { String name = fe.getName(); if ( this.nameFilter == null ) { return true; } try { if ( !this.nameFilter.accept(this.parent, name) ) { return false; } return true; } catch ( CIFSException e ) { log.error("Failed to apply name filter", e); return false; } }
private final boolean filter ( FileEntry fe ) { String name = fe.getName(); if ( this.nameFilter == null ) { return true; } try { if ( !this.nameFilter.accept(this.parent, name) ) { return false; } return true; } catch ( CIFSException e ) { log.error("Failed to apply name filter", e); return false; } }
private final boolean filter ( FileEntry fe ) { String name = fe.getName(); if ( name.length() < 3 ) { int h = name.hashCode(); if ( h == SmbFile.HASH_DOT || h == SmbFile.HASH_DOT_DOT ) { if ( name.equals(".") || name.equals("..") ) return false; } } if ( this.nameFilter == null ) { return true; } try { if ( !this.nameFilter.accept(this.parent, name) ) { return false; } return true; } catch ( CIFSException e ) { log.error("Failed to apply name filter", e); return false; } }
private final boolean filter ( FileEntry fe ) { String name = fe.getName(); if ( name.length() < 3 ) { int h = name.hashCode(); if ( h == SmbFile.HASH_DOT || h == SmbFile.HASH_DOT_DOT ) { if ( name.equals(".") || name.equals("..") ) return false; } } if ( this.nameFilter == null ) { return true; } try { if ( !this.nameFilter.accept(this.parent, name) ) { return false; } return true; } catch ( CIFSException e ) { log.error("Failed to apply name filter", e); return false; } }
private SmbResource adapt ( FileEntry e ) throws MalformedURLException { return new SmbFile(this.parent, e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L, 0L, 0L); }
private SmbResource adapt ( FileEntry e ) throws MalformedURLException { return new SmbFile(this.parent, e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L, 0L, 0L); }
/** * @param fe * @return * @throws MalformedURLException */ @Override protected SmbResource adapt ( FileEntry e ) throws MalformedURLException { return new SmbFile(getParent(), e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L, 0L, 0L); } }
/** * @param fe * @return * @throws MalformedURLException */ @Override protected SmbResource adapt ( FileEntry e ) throws MalformedURLException { return new SmbFile(getParent(), e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L, 0L, 0L); } }
for( int i = 0; i < resp.numEntries; i++ ) { FileEntry e = resp.results[i]; String name = e.getName(); if( name.length() < 3 ) { int h = name.hashCode();
for( int i = 0; i < resp.numEntries; i++ ) { FileEntry e = resp.results[i]; String name = e.getName(); if( name.length() < 3 ) { int h = name.hashCode();
for (int i = 0; i < n; i++) { FileEntry e = resp.results[i]; String name = e.getName(); if (fnf != null && fnf.accept(this, name) == false) continue;
for( int i = 0; i < resp.numEntries; i++ ) { FileEntry e = resp.results[i]; String name = e.getName(); if( name.length() < 3 ) { int h = name.hashCode();
for (int i = 0; i < n; i++) { FileEntry e = resp.results[i]; String name = e.getName(); if (fnf != null && fnf.accept(this, name) == false) continue;
for( int i = 0; i < resp.numEntries; i++ ) { FileEntry e = resp.results[i]; String name = e.getName(); if( name.length() < 3 ) { int h = name.hashCode();
for (int i = 0; i < n; i++) { FileEntry e = resp.results[i]; String name = e.getName(); if (fnf != null && fnf.accept(this, name) == false) continue;
for (int i = 0; i < n; i++) { FileEntry e = resp.results[i]; String name = e.getName(); if (fnf != null && fnf.accept(this, name) == false) continue;
/** * @param fe * @return * @throws MalformedURLException */ @Override protected SmbResource adapt ( FileEntry e ) throws MalformedURLException { return new SmbFile( getParent(), e.getName(), true, SmbConstants.TYPE_FILESYSTEM, e.getAttributes(), e.createTime(), e.lastModified(), e.lastAccess(), e.length()); } }
/** * @param fe * @return * @throws MalformedURLException */ @Override protected SmbResource adapt ( FileEntry e ) throws MalformedURLException { return new SmbFile( getParent(), e.getName(), true, SmbConstants.TYPE_FILESYSTEM, e.getAttributes(), e.createTime(), e.lastModified(), e.lastAccess(), e.length()); } }