? .svn
? example.patch
Index: uc_file.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_file/uc_file.module,v
retrieving revision 1.2.2.21
diff -u -p -r1.2.2.21 uc_file.module
--- uc_file.module	21 Sep 2009 14:34:48 -0000	1.2.2.21
+++ uc_file.module	25 Jun 2010 08:16:37 -0000
@@ -695,7 +695,9 @@ function theme_uc_file_downloads_token($
   foreach ($user_files as $user_file) {
 
     // Let's only notify of them of the files, not the directories.
-    if (is_dir($user_file->filename)) {
+    // by jayajha - Added uc_file_qualify_file function. 
+    // Otherwise, correct directory name is not being returned and this check always fails 
+    if (is_dir(uc_file_qualify_file($user_file->filename))) {
       continue;
     }
 
Index: uc_file.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_file/uc_file.pages.inc,v
retrieving revision 1.1.2.11
diff -u -p -r1.1.2.11 uc_file.pages.inc
--- uc_file.pages.inc	21 Sep 2009 14:34:48 -0000	1.1.2.11
+++ uc_file.pages.inc	25 Jun 2010 08:16:38 -0000
@@ -58,6 +58,9 @@ function uc_file_user_downloads($account
   $rows = array();
   while ($file = db_fetch_object($files)) {
 
+  	if(is_dir(uc_file_qualify_file($file->filename)))
+  		continue;
+  		
     $row = count($rows);
     $download_limit = $file->download_limit;
 
