|
From: <fcr...@us...> - 2011-12-30 08:50:31
|
Revision: 783
http://safekeep.svn.sourceforge.net/safekeep/?rev=783&view=rev
Author: fcrawford
Date: 2011-12-30 08:50:25 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
Only add trailing slash on directory if it is not already present
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2011-12-30 08:43:51 UTC (rev 782)
+++ safekeep/trunk/safekeep 2011-12-30 08:50:25 UTC (rev 783)
@@ -724,7 +724,7 @@
def mount_excluded(cfg, mountpoint):
debug("mount_excluded: %s" % mountpoint)
- mountpoint = mountpoint + '/'
+ if not mountpoint.endswith('/'): mountpoint = mountpoint + '/'
for clude in cfg['cludes']:
if clude['type'] == 'exclude' and clude['path']:
if mountpoint.startswith(clude['path']):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|