m/directory: Added directory_contents method