Add directory_size call

Recursively iterate the specified directory, summing up the files
inside, and return the total size.