How to Get All list of Excels from the sharpbox

Dec 19, 2014 at 6:40 AM
I am using following code to get files and folder names but I want all excel files list is there any way to get all files please
  DropBoxConfiguration config = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration();
                config.AuthorizationCallBack = new Uri("http://localhost/HTMLPage1.htm");
                // 1. get the request token from dropbox
                DropBoxRequestToken requestToken = DropBoxStorageProviderTools.GetDropBoxRequestToken(config, ConsumerKey, ComsumerSecret);

                // 2. build the authorization url based on request token                        
             
               String url = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(config, requestToken);
    
//3. user interaction
          process.start(url);

              ICloudStorageAccessToken accessToken = null;
            // 4. Exchange the request token into access token
            label:
                try
                {
                    
                    accessToken = DropBoxStorageProviderTools.ExchangeDropBoxRequestTokenIntoAccessToken(config, ConsumerKey, ComsumerSecret, requestToken);
                }
                catch (Exception ex)
                {
                    Thread.Sleep(2000);
                    goto label;
                }

                // 5. Opent the storage with the generated access token            
                CloudStorage storageNew = new CloudStorage();
                storageNew.Open(config, accessToken);

                // 6. Try to do something
                ICloudDirectoryEntry r = storageNew.GetRoot();
                List<ICloudFileSystemEntry> FolderName = new List<ICloudFileSystemEntry>();
                List<ICloudFileSystemEntry> FileName = new List<ICloudFileSystemEntry>();
                //int i = 0;
                foreach (var item in r)
                {
                    if (item.Length == 0)
                    {
                        FolderName.Add(item);
                    }
                    else if (item.Length > 0)
                    {
                        FileName.Add(item);
                    }
                }