if (directoryDO.getPath().length()<value.getDir().length() && directoryDO.getPath().lastIndexOf(ApplejuiceFassade.separator) == value.getDir().lastIndexOf(ApplejuiceFassade.separator)){ continue; }
    public int getShareMode(){        if (directoryDO==null)            return NOT_SHARED;        Iterator it = shareDirs.iterator();        int shareMode = NOT_SHARED;        while (it.hasNext()){            ShareEntry value = (ShareEntry)it.next();            if (value.getDir().toLowerCase().startsWith(directoryDO.getPath().toLowerCase())){                if (value.getShareMode()==ShareEntry.SUBDIRECTORY){                    if (directoryDO.getPath().toLowerCase().startsWith(value.getDir().toLowerCase()))                        return SHARED_WITH_SUB;                    else                        return SHARED_SOMETHING;                }                else{                    if (directoryDO.getPath().toLowerCase().startsWith(value.getDir().toLowerCase()))                        return SHARED_WITHOUT_SUB;                    else                        return SHARED_SOMETHING;                }            }        }        int parentShareMode = parent.getShareMode();        if (parentShareMode==SHARED_WITH_SUB || parentShareMode==SHARED_SUB)            shareMode = SHARED_SUB;        return shareMode;    }