Hey!
My TAs are asian so I'm gunna ask here just in case the email i sent goes unanswered..
My homework assignment is basically a command line program that will find the size of files and folders
if its fed a folder on command line, it will have to recursively go through that folder and all files and subfolders to find the total size of the main folder ... (kind of like when you right click a folder in windows and go to properties and it lists the size)
I need to program it for a windows and a unix environment
EDIT:
ok i have it working perfectly for windows but im having some really f****d up trouble in unix .. i found out how to do it in unix but for some reason when i use my recursive function to go through directories it doesnt recognize a directory as a directory and fails and does weird shit ... (using stat)
i took a look at here
http://www.unix.com/archive/index.php/t-8899.html and am using basically their code, altered a bit, and adding stat and using a recursive function
i doubt at this point anyone can help me .. but i dunno .. ill at least post it
EDIT:---------------
f**k it i got it working heh
Last edited by Overon on 02/12/05 - 02:38; edited 2 times in total