[Mono-bugs] [Bug 50532][Min] Changed - Environment.SpecialFolders paths
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 5 Nov 2003 09:34:52 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=50532
--- shadow/50532 2003-11-04 18:27:51.000000000 -0500
+++ shadow/50532.tmp.4331 2003-11-05 09:34:52.000000000 -0500
@@ -72,6 +72,25 @@
I think we should apply this. The only question is of course, making
sure that the directory exists, but I think thta can be handled by the
caller.
Miguel
+
+------- Additional Comments From bmaurer@users.sf.net 2003-11-05 09:34 -------
+Well, in MS the contract is that the folder that is returned *always*
+exists. IMHO we should keep the contract on Mono. How much of a pref
+issue would checking be? We could do something like:
+
+static bool checkedAppDataExist = false;
+
+static string GetAppDataFolder () {
+ string folder;
+ // get the string in folder
+ if (!checkedAppDataExist && !Directory.Exists (folder) {
+ // create folder
+ }
+ checkedAppDataExist = true;
+}
+
+Let's also make sure each and every SpecialFolder returns a nice
+path, I remember we had problems with this in Monodoc.