Get the size of the files and directories.

Need to create the option.
Bugfix: Didn't get the correct file size for HDFS files.