DropNet returning metadata for root folder not folder requested -


problem: getmetadata folder need returns root folder metadata.

background: i'm trying write small app download folder large (many thousand files , multiple gb) download dropbox web interface. tries recurse through subdirectories of directory given, downloading files.

what happens endless loop. app (incorrectly) gets root folder metadata, iterates through directories until hits directory need , starts working through root directory metadata set receives.

the directory name "/apps" works fine 1 need doesn't. folder name has underscore , mix of upper , lower case letters (no other characters) similar "/xyx_datafolder".

my app has "full dropbox" permission , authorized account api key acquired under.

changing directory name not option me.

i'm using vs2012 , dropnet added through nuget.

any input on issue welcome. thanks!

edit:

runtime version v4.0.30319 version 1.10.23.0

as reported in visual studio properties page reference.

i authorize works fine , use code below. directories work fine when try getmetadata on folder mentioned above, metadata root folder.

private void downloaddirectory( string serverdirectory, string clientdirectory ) {   var meta = m_client.getmetadata( serverdirectory, false, false );   foreach ( var item in meta.contents ) {     var destinationpath = path.combine( clientdirectory, item.name );     if ( item.is_dir && item.path == m_serverrootdirectory ) {       downloaddirectory( item.path, destinationpath );     }     else {       //var filebytes = m_client.getfile( item.path );       //file.writeallbytes( destinationpath, filebytes );       //textbox1.text += environment.newline + destinationpath;     }   } } 

ok, downloaded source , found problem right away. missing null hash in getmetadata call, using wrong overload. sorry waste time... response!


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -