DSKCLI-253 : hasFile or hasFolder replacing isResource method