Changed ListDirectory to using the FileEnumerator class