[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r1587 -
From:       codesite-noreply () google ! com
Date:       2008-05-13 21:28:05
Message-ID: 001485f91cb2fe9383044d235638 () google ! com
[Download RAW message or body]

Author: KillerKiwi2005
Date: Tue May 13 14:27:29 2008
New Revision: 1587

Modified:
   trunk/client/trunk/klikclient/lib/klik/execute.py
   trunk/client/trunk/klikclient/lib/klik/fuse.py

Log:
Fix for tmp path

Modified: trunk/client/trunk/klikclient/lib/klik/execute.py
==============================================================================
--- trunk/client/trunk/klikclient/lib/klik/execute.py	(original)
+++ trunk/client/trunk/klikclient/lib/klik/execute.py	Tue May 13 
14:27:29 2008
@@ -76,7 +76,7 @@
 		# make sure we get dot files in root directory
 		files = glob.glob( os.path.join(cmg.mount_point_path, ".*") )
 		if len(files) > 0:
-			call(["cp"] + files + [path_to, "-v", "-p"])
+			call(["cp"] + files + [path_to, "-r", "-v", "-p"])

 		os.chmod(path_to, 0755)


Modified: trunk/client/trunk/klikclient/lib/klik/fuse.py
==============================================================================
--- trunk/client/trunk/klikclient/lib/klik/fuse.py	(original)
+++ trunk/client/trunk/klikclient/lib/klik/fuse.py	Tue May 13 14:27:29 2008
@@ -51,7 +51,13 @@
 		#		os.makedirs(path)
 		#	return os.path.join(path, "mnt")
 		#else:
-		return tempfile.mkdtemp('.execute.' + cmg.get_unique_id(), self.klik.settings.temp_directory_path)
+
+		# Insure temp path exists
+		if not os.path.exists(self.klik.settings.temp_directory_path):
+			os.makedirs(self.klik.settings.temp_directory_path)
+		path = tempfile.mkdtemp('.execute.' + cmg.get_unique_id(), self.klik.settings.temp_directory_path)
+
+		return path



_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic