File diskusage

added a function to calculate diskusage of a file or directory.
thanks,
Sebastian