add isFolder method
RCS: restore revision
add TODO