isCyclic

Check whether a folder is cyclic.