I'm new to EPiServer and I am trying to get all the MediaData from a local folder of a page that is not the root. I have tried to get it with the following code but I get zero back. I am doing something wrong because I have a file in my currentPage? Any ideas?
contentRepository.GetChildren<MediaData>(CurrentPage.ContentLink).ToList()