[vlma-devel] commit: Create the ".vlma" directory in the user home if it doesn't exist. (Adrien Maglo )

git version control git at videolan.org
Mon Jun 9 23:19:56 CEST 2008


vlma | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Jun  9 23:16:46 2008 +0200| [02748b4ef4dd87a877c8e63a35ad7400d1bd8f89]

Create the ".vlma" directory in the user home if it doesn't exist.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=02748b4ef4dd87a877c8e63a35ad7400d1bd8f89
---

 .../src/main/java/org/videolan/vlma/VLMa.java      |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vlma-configuration/src/main/java/org/videolan/vlma/VLMa.java b/vlma-configuration/src/main/java/org/videolan/vlma/VLMa.java
index 1612593..2071f52 100644
--- a/vlma-configuration/src/main/java/org/videolan/vlma/VLMa.java
+++ b/vlma-configuration/src/main/java/org/videolan/vlma/VLMa.java
@@ -110,6 +110,8 @@ public class VLMa extends CompositeConfiguration implements Configuration {
             // If vlma.conf is not set, then read VLMa configuration
             // from the user home.
             confDir = System.getProperty("user.home") + File.separator + ".vlma";
+            //Create the directory if necessary
+            new File(confDir).mkdir();
         }
         return new File(confDir, CONFIGURATION_FILE);
     }



More information about the vlma-devel mailing list