/** * Check whether provided ID is either root ID or trash ID. * * @param id ID. * @return {@code True} if this is root ID or trash ID. */ public static boolean isRootOrTrashId(@Nullable IgniteUuid id) { return isRootId(id) || isTrashId(id); }
String victimName = pathIds.lastPart(); if (IgfsUtils.isRootId(victimId)) throw new IgfsException("Cannot remove root directory");
/** * Check whether provided ID is either root ID or trash ID. * * @param id ID. * @return {@code True} if this is root ID or trash ID. */ public static boolean isRootOrTrashId(@Nullable IgniteUuid id) { return isRootId(id) || isTrashId(id); }
String victimName = pathIds.lastPart(); if (IgfsUtils.isRootId(victimId)) throw new IgfsException("Cannot remove root directory");