fix for is_really_writable
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index d07d35f..83ef6a0 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -176,4 +176,39 @@
 	}

 }

 

+// --------------------------------------------------------------------

+

+/**

+ * Tests for file writability

+ *

+ * is_writable() returns TRUE on Windows servers

+ * when you really can't write to the file

+ * as the OS reports to PHP as FALSE only if the

+ * read-only attribute is marked.  Ugh?

+ *

+ * @access	private

+ * @return	void

+ */	

+function is_really_writable($file)

+{

+	if (is_dir($file))

+	{

+		$file = rtrim($file, '/').'/'.md5(rand(1,100));

+		

+		if (($fp = @fopen($file, 'ab')) === FALSE)

+		{

+			return FALSE;

+		}

+		

+		@chmod($file, 0777);

+		@unlink($file);

+	}

+	elseif (($fp = @fopen($file, 'ab')) === FALSE)

+	{

+		return FALSE;

+	}

+

+	fclose($fp);

+	return TRUE;

+}

 ?>
\ No newline at end of file