Index: og_files.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og_files/Attic/og_files.install,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 og_files.install
--- og_files.install	17 May 2008 13:45:40 -0000	1.1.2.2
+++ og_files.install	28 Nov 2008 01:56:53 -0000
@@ -29,6 +29,17 @@
     } else {
       drupal_set_message(t('The installation of the og_files module was unsuccessful.'),'error');
     }
+
+    // Prepare og_files path
+    $path = file_directory_path() .'/og_files';
+    if (!is_dir($path)) {
+      if (mkdir($path, 0777)) {
+        @chmod($path, 0775);
+        drupal_set_message(t('The directory %path has been created.', array('%path' => $path)));
+      }
+      else
+        drupal_set_message(t("Can't create %path, please create it manually.", array('%path' => $path)));
+    }
   }
 
 function og_files_uninstall() {
