Edited displayDirectory