Basic function to get current directory contents