private ArrayList<String> getBindList(String path)
  {
    if (! path.endsWith("/")) {
      path = path + "/";
    }

    ArrayList<String> bindList = new ArrayList<>();

    for (String bindPath : _bindMap.keySet()) {
      if (bindPath.startsWith(path)) {
        int p = bindPath.indexOf('/', path.length());

        String subpath = null;

        if (p > 0) {
          subpath = bindPath.substring(path.length(), p);
        }
        else {
          subpath = bindPath.substring(path.length());
        }

        if (! bindList.contains(subpath)) {
          bindList.add(subpath);
        }
      }
    }

    return bindList;
  }
private ArrayList < String > getBindList ( String path ) { if ( ! path . endsWith ( "/" ) ) { path = path + "/" ; } ArrayList < String > bindList = new ArrayList < > ( ) ; for ( String bindPath : _bindMap . keySet ( ) ) { if ( bindPath . startsWith ( path ) ) { int p = bindPath . indexOf ( '/' , path . length ( ) ) ; String subpath = null ; if ( p > 0 ) { subpath = bindPath . substring ( path . length ( ) , p ) ; } else { subpath = bindPath . substring ( path . length ( ) ) ; } if ( ! bindList . contains ( subpath ) ) { bindList . add ( subpath ) ; } } } return bindList ; }
/*
public void removeWatch(String path, DatabaseWatch watchDatabase)
{
_fileWatch.unwatch(watchDatabase, path);
_dirWatch.watch(watchDatabase, path);
}