c# - Size of a subversion directory -


i have project takes checkout in directory under subversion sharpsvn. want show checkout process in progress bar, need know size of board, property or decision of library return size of directory?

thanks in advance!

i managed size of download directory subversion through checkout, variable "total_size" overall size of download. display download process in progressbar should capture bits downloaded compare total , assign them progressbar, not how data ... has done similar? show me property , has used code?

              //this collection contain property collections each node               system.collections.objectmodel.collection<svnpropertylisteventargs> proplist;                //this can specify arguments svn proplist               svnpropertylistargs args = new svnpropertylistargs();                args.depth = svndepth.infinity;                //this method executes svn proplist               client.getpropertylist(targetsource, args, out proplist);                //each svnpropertylisteventargs represents prop. set node               foreach (svnpropertylisteventargs node in proplist)               {                   //each svnpropertyvalue represents single name/value property pair                   foreach (svnpropertyvalue propval in node.properties)                   {                       items.items.add(node.path);                   }               }                int total_items = items.items.count;               long totalsize = 0;               (int = 0; < total_items; i++)               {                   client.getinfo(new uri(items.items[i].tostring()), out info);                   totalsize = totalsize + info.repositorysize;                }               messagebox.show(string.format("the total size of {0} {1}", targetsource, totalsize)); 

thanks


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -