I can implement du SE:/path since it provides me enough information about given path. First I need to create an objects which will hold dir structure. So, it can be DirObject which has the following attributes, list of files with their file size and list of sub-dirs. Then it would be easy to implement sum/total function.
I can implement du SE:/path since it provides me enough information about given path. First I need to create an objects which will hold dir structure. So, it can be DirObject which has the following attributes, list of files with their file size and list of sub-dirs. Then it would be easy to implement sum/total function.